6764 Commits

Author SHA1 Message Date
Dylan K. Taylor
0a19a2611a Re-organise some Entity methods 2017-10-19 19:03:11 +01:00
Dylan K. Taylor
50be26958a Added a helper function Entity->createBaseNBT() to cut down on boilerplate code 2017-10-19 17:36:51 +01:00
Dylan K. Taylor
67c6fca0ed Relocate a couple of Entity API methods and add some documentation 2017-10-19 17:05:27 +01:00
Dylan K. Taylor
d99e9513b0 Remove some redundant constructor overrides 2017-10-19 16:42:14 +01:00
Dylan K. Taylor
5a353012de Clean up some unused imports 2017-10-19 16:39:34 +01:00
Dylan K. Taylor
087badcb48 Remove deprecated effects methods from Entity 2017-10-19 16:35:44 +01:00
Dylan K. Taylor
d9769360fe Remove redundant code from Entity->entityBaseTick()
this will never be called because onUpdate() checks this and returns.
2017-10-19 16:32:45 +01:00
Dylan K. Taylor
9fb93985d6 Cleaned up Entity->spawnTo() 2017-10-19 16:13:09 +01:00
Dylan K. Taylor
2b22d5d8cc Added EntityIds interface with constants 2017-10-19 15:43:55 +01:00
Dylan K. Taylor
2db13bd114 added throwable eggs and refactor some projectile logic
close #1473
2017-10-19 14:12:50 +01:00
Dylan K. Taylor
11cc20972f extended death animation time 2017-10-19 13:39:51 +01:00
Dylan K. Taylor
4821e7386d fixed entities despawning too soon when killed 2017-10-19 13:39:10 +01:00
Dylan K. Taylor
584810780a Moved projectile-related classes to their own namespace 2017-10-19 12:27:44 +01:00
Dylan K. Taylor
55de75b914 Let blast resistance be computed from hardness for flowable blocks
fixes several flowable blocks apparently not having any resistance to explosions
2017-10-19 11:50:21 +01:00
Dylan K. Taylor
2a1a17aa7a Refactored button code, fix placement rotation 2017-10-19 11:36:30 +01:00
Dylan K. Taylor
90165cf99d Implemented farmland hydration
TODO: make crops take notice of this
2017-10-19 11:23:54 +01:00
Dylan K. Taylor
a4ca3f1d1c Updated PocketMine-Language submodule 2017-10-18 21:08:39 +01:00
Dylan K. Taylor
f783789e5a fixed escape code unescaping in language files, close #1474 2017-10-18 20:43:35 +01:00
Dylan K. Taylor
43be64baed Register some more items
the item-blocks will allow their blocks to be placed, but they still won't work until the blocks themselves are added.
2017-10-18 19:52:19 +01:00
Dylan K. Taylor
5c92c8a9d3 added red sandstone and red sandstone stairs 2017-10-18 19:42:12 +01:00
Dylan K. Taylor
d2dc49cd9c Refactor Slab logic away from WoodenSlab, added StoneSlab2 and its double 2017-10-18 19:27:54 +01:00
Dylan K. Taylor
f148c366f9 Use Block->getVariant() more, get rid of hardcoded bitmasks 2017-10-18 17:46:24 +01:00
Dylan K. Taylor
91d84aaff4 Fixed a direct Block construction that PhpStorm somehow couldn't see 2017-10-18 17:03:55 +01:00
Dylan K. Taylor
6b78ba8c25 replace some hardcoded values with Vec3 constants 2017-10-18 17:03:18 +01:00
Dylan K. Taylor
b9de2e8b4b Use bit operations for rotations instead of hardcoded values 2017-10-18 16:47:37 +01:00
Dylan K. Taylor
15764543b4 Use PillarRotationHelper for hay bales 2017-10-18 16:41:43 +01:00
Dylan K. Taylor
2c34648c3d fixed second half of double chest items getting deleted, close #1477 2017-10-18 12:29:57 +01:00
Dylan K. Taylor
3e3157cbe1 fix tick diff debug spam when entities are spawned 2017-10-17 17:38:43 +01:00
Dylan K. Taylor
07abd61f73 Added a FIXME for Entity->move() 2017-10-17 17:14:45 +01:00
Dylan K. Taylor
a456b7cfca Disable movement anti-cheat by default
shit's useless and an annoyance.
2017-10-17 16:45:18 +01:00
Dylan K. Taylor
ece37d1e19 Added more methods to PlayerIllegalMoveEvent 2017-10-17 16:14:41 +01:00
Takuya Sawada
cccaade00c make Player#unloadChunk() method protected 2017-10-17 14:22:57 +01:00
Dylan K. Taylor
7f0a961526 "Creator" tag on signs may not exist 2017-10-17 13:35:31 +01:00
Dylan K. Taylor
68ac4f538f Added ContainerTrait, reduce copy-pasted code in Tile 2017-10-16 20:01:17 +01:00
Dylan K. Taylor
f14b7cbf78 Renamed BlockEventPacket fields 2017-10-16 19:55:42 +01:00
Dylan K. Taylor
f4ff5d81ea Added missing parent calls for saveNBT() in Chest and Furnace 2017-10-16 18:56:48 +01:00
Dylan K. Taylor
28a840d161 Make use of CompoundTag->hasTag() 2017-10-16 18:32:08 +01:00
Dylan K. Taylor
292e462ea0 Remove nullable return types on CompoundTag getters
this doesn't make sense because there are default value parameters for this
2017-10-16 18:22:45 +01:00
Dylan K. Taylor
c8379efbce Added expectedClass parameter to hasTag() to allow type-checking 2017-10-16 17:26:12 +01:00
Dylan K. Taylor
1b5746fd97 Use NamedTag::class for default expectedClass in CompoundTag->getTag() 2017-10-16 17:22:38 +01:00
Dylan K. Taylor
4a0ac01697 Fix PhpStorm derp
wtf?
2017-10-16 17:02:00 +01:00
Dylan K. Taylor
9bcb41fb21 Refactor misleading parameter names in CompoundTag
these are NBT tag classes, not the NBT tag type. The tag type is an integer which describes the tag on disk.
2017-10-16 17:00:57 +01:00
Dylan K. Taylor
20b86bdea8 Cleaned up tile NBT handling, use new CompoundTag API methods 2017-10-16 16:48:24 +01:00
Dylan K. Taylor
0b1a9ba062 Added more typehints to Tile namespace 2017-10-16 16:14:44 +01:00
Dylan K. Taylor
45b003ac2e Removed unnecessary return from Sign 2017-10-16 16:10:33 +01:00
Dylan K. Taylor
769a50faa5 Refactor confusing parameter names for Item->onActivate()
next: refactor the function itself
2017-10-16 13:30:36 +01:00
Dylan K. Taylor
af85659c63 Remove redundant property from Tile 2017-10-16 12:35:32 +01:00
Dylan K. Taylor
95fa1824c8 Use a trait for nameable tiles instead of repeating code 2017-10-16 12:32:10 +01:00
Dylan K. Taylor
251d5d7946 Fixed some hardcoded values in Tree 2017-10-16 12:30:46 +01:00
Dylan K. Taylor
3b5eb45ff5 More usages of Item->isNull() 2017-10-16 12:29:39 +01:00