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
asofold
fd9bb76202
Refactor parts of actions to NCPCompat.
...
This is not finished, log action is missing still.
2013-01-30 14:05:39 +01:00
asofold
a3656b92d9
Add WorldConfigProvider for future purpose.
2013-01-30 10:42:29 +01:00
asofold
abe22f8104
Cleanup BlockProperties on disable.
2013-01-30 03:22:58 +01:00
asofold
d2cdf377eb
Add isOnGroundOrResetCond to BlockProperties.
2013-01-30 02:00:48 +01:00
asofold
1cd04e58a8
L-O-L
2013-01-29 16:44:23 +01:00
asofold
5e83ec004b
Careful with max height.
2013-01-29 16:40:59 +01:00
asofold
4e6c2bc8c6
Fix attempt for fences and the like.
...
This judges such block types as "variable" in shape and regards them as
ground if the shape of the above block differs.
2013-01-29 16:34:30 +01:00
asofold
6eb1cb0fd2
Add getMaxBlockY to BlockCache. Might need setting in setAccess, later
...
on.
2013-01-29 16:02:08 +01:00
asofold
b02a57c09c
Workaround for vines + axes.
2013-01-27 06:58:12 +01:00
asofold
200a96440e
Contemplation.
2013-01-26 09:29:08 +01:00
asofold
940e7d83e3
Add class-member checks for failing constructors (compat).
2013-01-24 21:38:31 +01:00
asofold
f485fc7a2d
Fix for non-blocks in setupBlockProperties.
2013-01-24 20:46:33 +01:00
asofold
3ad3309e43
Correct block break time penalties for under-water and off-ground.
...
Also adds API to get and set those.
2013-01-22 19:56:07 +01:00
asofold
8d1ee85d9d
Add compatibility option to set blocks as instantly breakable.
2013-01-21 05:59:52 +01:00
asofold
c457d27616
MCAccessBukkit: Fail too for transparent, zombies.
2013-01-20 05:50:50 +01:00
asofold
762ae9174d
[BLEEDING] Some missing parts [might still be missing some].
...
Set to bleeding, because the last commits are. Bukkit-API-only access
shortly tested. There will be issues, but this might help over the
darkest of days.
2013-01-20 05:25:21 +01:00
asofold
835ae9cb26
Add ability to run extra BlockProperties setup if MCAccess implements
...
the interface.
2013-01-20 04:31:00 +01:00
asofold
ee1f410dae
[SAFETY COMMIT, REFACTOR, BREAKING]
...
Moving big parts of code between sub-projects. Some refactoring was
needed to unlink some classes. Deprecated methods removed. Some utility
methods were moved to differently named utilities. Few signatures
changed (e.g. BlockProperties.init). Most changes should only concern
bugs or developers who dug into some NCP deeply (not sure those exist).
It should still all be there.
2013-01-20 04:18:08 +01:00
asofold
8e313f4a47
[SAFETY COMMIT, INCOMPLETE] RAW: Add support for bukkit-api-only.
2013-01-20 00:51:09 +01:00
asofold
77975c2659
Put compat versions "right". (Rename MC1_4_6 to CB2545.)
2012-12-21 18:08:18 +01:00
asofold
c6a4cf2ab7
Correct some things about width/length of entities.
...
This might have caused lag and all sorts of problems with moving, such
as getting pulled back near cobweb or water. [Still fp in survivalfly
left.]
2012-12-17 19:15:21 +01:00
asofold
923b4ebdca
No brain necessary for parent pom version, hahaha!
2012-12-17 17:37:42 +01:00
asofold
e2a1fc6a2d
Change signature of MCAccess.isIllegal to AlmostBoolean.
2012-12-17 17:02:04 +01:00
asofold
c433bfe215
Update pom descriptions.
2012-12-14 10:36:58 +01:00
asofold
5f54286c12
Compiles: poms fixed / hacked. Credit mbax for general setup.
2012-12-13 23:42:59 +01:00
asofold
f21ffd68cb
RAW split setup (does not compile in eclipse).
2012-12-13 22:48:56 +01:00