Commit Graph

76 Commits

Author SHA1 Message Date
asofold
354511b88f isOnGround: Fix for flags. 2013-03-05 17:31:37 +01:00
asofold
f7d9441174 isOnGround: Add null check, move some things to methods. 2013-03-05 17:14:43 +01:00
asofold
0194d1fcc8 Tweak isOnGround: Faster exclusions for walls. 2013-03-05 17:00:06 +01:00
asofold
22974751e6 Re-order isOnGround for better overview. 2013-03-05 16:54:12 +01:00
asofold
ce6a8b4498 Adjust on-ground handling: fix and bring back "shortcut" check.
It is not just a shortcut, it also prevents survivalfly alerts in case
the player is stuck.
2013-03-05 07:53:37 +01:00
asofold
1cc18db8be Reorder isOnGround, remove unreliable "short-cut". 2013-03-04 22:24:44 +01:00
asofold
c805caa553 RayTracing: Add ability to check number of steps done.
Now available in the abstract base class.
2013-03-01 21:43:26 +01:00
asofold
2d0b2bace0 Add comments and javadocs. 2013-03-01 18:54:48 +01:00
asofold
bf0e8350ec More caching for on-ground checking in PlayerLocation.
Remember the minimal yOnGround for having found ground and the maximal
yOnGround for not having found ground. Does not apply for all
xz/y-margin parameters, yet.
2013-03-01 18:37:30 +01:00
asofold
e5767e3290 Remove hopefully not needed extension for y-bounds for isOnGround. 2013-03-01 17:35:07 +01:00
asofold
d429f8c597 Add safety check to stop ray-tracing if coordinates don't change. 2013-03-01 15:13:53 +01:00
asofold
e7cfdd4b3e Make sure RayTracing only advances if really moving into that
direction.
2013-03-01 02:22:04 +01:00
asofold
15a2165a9c Fix passable ray-tracing not stopping after collision. 2013-02-28 23:24:43 +01:00
asofold
63cc892cde Too much space. 2013-02-28 18:12:16 +01:00
asofold
31faf7f11e Adjust available build parameters: TEST_LEVEL and DEBUG_LEVEL
Not yet too much in use, though.
2013-02-28 18:09:42 +01:00
asofold
da4b142aa9 Add module: NCPCompatBukkit
Seems better to have a dedicated module for this as well, since other
modules might be built against different versions of the Bukkit-API,
potentially.
2013-02-28 03:40:40 +01:00
asofold
e0b2eb753c Add getInt and getLong with bounds parameters. 2013-02-27 15:34:45 +01:00
asofold
7a84ed371b Add module for build parameter info.
This is needed with the current technique in order to have it available
at the time of testing NCPCommons.
2013-02-27 00:46:56 +01:00
asofold
33af656b29 Add support for build parameters (example: EXTENSIVE_TESTING).
We can put through build parameters for testing and other purposes so
NCP can see them during testing or runtime otherwise. Not sure this is
the final version, though.
2013-02-26 23:14:33 +01:00
asofold
4958913d1e Fix opposite-direction increments in ray-tracing. 2013-02-26 20:26:46 +01:00
asofold
7baac6bb38 Extend tests for RayTracing. 2013-02-26 20:25:37 +01:00
asofold
9e4badbe4e Add comment. 2013-02-26 18:36:43 +01:00
asofold
47862a651f We use liquid, not fluid. 2013-02-23 16:54:50 +01:00
asofold
0a031a0a92 [BLEEDING] Add hidden config option to override block flags.
This allows to override arbitrary blocks block-flags.
2013-02-20 22:09:31 +01:00
asofold
f7ca2da065 Add data value to debug.output method. 2013-02-20 20:56:05 +01:00
asofold
3827fac67a Add methods for getting block-flag-names and parsing flags.
Also add extended output to BlockProperties.dumpBlocks.
2013-02-20 20:33:39 +01:00
asofold
e6961a757b Move some debugging code to a utility. 2013-02-20 19:43:54 +01:00
asofold
faa9a8637c Explicitly set STEP as solid.
Hopefully fixes an issue with another plugin.
2013-02-17 22:37:53 +01:00
asofold
277d062763 Attempt to fix issues with piston-extension. 2013-02-17 19:05:57 +01:00
asofold
0d3f63e8c3 Fix interact-ray-tracing workaround. 2013-02-17 18:15:46 +01:00
asofold
3f7e2d44f1 Add heuristic InteractRayTracing. 2013-02-17 17:33:14 +01:00
asofold
5c3f79c09d Add convenience methods to BlockCache. 2013-02-17 14:21:23 +01:00
asofold
68a807a564 Correct a method name in BlockProperties.
Old one is deprecated now.
2013-02-17 14:07:22 +01:00
asofold
3dbe5fcda8 Add constructor without arguments to RayTracing for convenience. 2013-02-17 13:56:13 +01:00
asofold
dbf87093e3 [Bleeding] Simplify passable-ray-tracing.
Just comment out the from-collides check, since it should be included in
the actual ray-tracing check. Should give some speed-up.
2013-02-15 18:59:12 +01:00
asofold
cbe0b5c0d7 Workaround for standing on the block below a cactus (simplistic). 2013-02-15 18:53:38 +01:00
asofold
29f5a153a5 Fix isSameBlock(Location), add convenience methods isBlockAbove. 2013-02-15 15:46:19 +01:00
asofold
1264cdb240 [Bleeding] Add ray-tracing for passable check.
By default this only checks for block-transitions and vclip down.
2013-02-15 13:59:36 +01:00
asofold
9f7d3c6cfc Add basic ray-tracing support. 2013-02-13 21:26:26 +01:00
asofold
7399bfa8ee More haste. 2013-02-05 11:02:47 +01:00
asofold
f5676cc635 Attempt to fix ladder climb up check.
Adds concept to ignore certain flags for isOnGround checking.
2013-02-03 19:16:55 +01:00
asofold
52797769a2 Fix jumping from water onto lilypads. 2013-02-03 16:52:37 +01:00
asofold
930228bc6c Protected more against moving up (ladder, vine, water).
Prevent climbing too high up vine that are not attached to solid
blocks. Prevent too high speed moving up on ladders, vine, liquid.
Refine treatment of exiting boats.
2013-02-03 16:32:22 +01:00
asofold
75a9d74edd Prevent walking on signs. 2013-02-03 13:46:34 +01:00
asofold
044c435180 Fix jumping out of water when next to something solid.
Problem was introduced by previous commits, which seemed to have fixed
false on-ground judgment (short-cut in PlayerLocation.isOnGround).
2013-02-02 18:14:55 +01:00
asofold
351fbfd79f Add specialized convenience methods for isOnGround and standsOnEntity. 2013-02-02 17:25:37 +01:00
asofold
57202f81c5 Correct short-cut on-ground judgment. 2013-02-02 16:46:03 +01:00
asofold
aa171f9687 Prepare getKeepAliveTime method for MCAccess.
No implementation of it yet. If implemented this will help finding
players that do a passive god-mode.
2013-02-02 08:13:59 +01:00
asofold
f4727ad3a2 Double.MIN_VALUE is something else. Should be Double.NEGATIVE_INFINITY. 2013-02-01 08:30:36 +01:00
asofold
048831b55b Set dependencies to 1.4.7-R1.x.
This needs more consideration, for backwards compatibility the pure-API
modules might compile against an older API version (defensively!),
while the API-only MCAccess might need an extra module compiling against
what it needs.
2013-01-31 07:05:28 +01:00