Commit Graph

60 Commits

Author SHA1 Message Date
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