asofold
9a5b988735
Higher or same height...
2013-03-07 00:21:12 +01:00
asofold
0543eb8200
Don't count blocks as ground the players foot is in.
2013-03-07 00:11:45 +01:00
asofold
db21e49576
Player must be above getBlockHeight.
2013-03-06 21:06:19 +01:00
asofold
83abefb630
Fix walking on a block below COCOA.
2013-03-06 20:36:00 +01:00
asofold
11628b2863
[BLEEDING] Squash a couple of spiders.
...
Reworking parts of the on-ground judgment to exclude blocks the player
is inside of rather than standing on them.
2013-03-06 19:19:49 +01:00
asofold
0eaf9587d8
Add null check and refine preconditions for on-ground shortcut.
2013-03-06 04:08:20 +01:00
asofold
f20fc8575d
isOnGround: Fix shape judgment for shape-changing blocks.
2013-03-05 21:49:16 +01:00
asofold
8762d38020
Fix isOnGround issue with shape judgment.
2013-03-05 21:36:30 +01:00
asofold
3ad9ba3993
Fix isOnGround stopping loop with "walls".
2013-03-05 21:23:18 +01:00
asofold
2b0ab5cae3
Reset block-flags with setYonGround. Add setter for block-flags.
2013-03-05 20:10:37 +01:00
asofold
d7110b3239
Adjust/fix moving debug output.
2013-03-05 19:45:01 +01:00
asofold
de44ea43a4
Fix for flags + adjust debug output to show flags and exact coordinates
...
on higher debugLevel.
2013-03-05 18:26:10 +01:00
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