Commit Graph

45 Commits

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