Dylan K. Taylor
d4494687d1
Fixed collision blocks not being recalculated after teleporting, close #1531
2017-11-09 15:11:42 +00:00
Dylan K. Taylor
0e64c3dad8
fixed misusing isAlive(), close #1523
2017-11-07 09:32:38 +00:00
Dylan K. Taylor
eab7b93483
Fixed misuse of kill() and close() when deleting entities ( #1490 )
2017-11-04 19:30:48 +00:00
Dylan K. Taylor
a66a757f56
Cleaned up EntityEventPacket handling
2017-11-04 18:31:35 +00:00
Dylan K. Taylor
3614711a02
fixed negative effect durations when level tick rate is > 1
...
thank you @Sandertv
2017-11-01 09:09:17 +00:00
Dylan K. Taylor
991d321928
improved geometry debloating, also apply on skin changes
2017-10-29 12:14:16 +00:00
Dylan K. Taylor
600d80331a
Accept null for targets in Human->sendSkin()
...
For humans, it'll send to all viewers. For players, it'll send to all viewers, and the player itself.
2017-10-29 11:18:34 +00:00
Dylan K. Taylor
bddd7e0eee
Fixed no fall damage when falling 3-4 blocks, close #891
2017-10-26 23:23:08 +01:00
Dylan K. Taylor
d48880e31b
Remove redundant assert
2017-10-24 17:40:22 +01:00
Matt
13e5718463
Using BlockFactory instead of Block
2017-10-23 18:50:37 +01:00
Matt
270e0c076c
Fixed items not removed when put in the lava
2017-10-23 18:50:37 +01:00
Dylan K. Taylor
8daa8deae9
Added Living->lookAt()
2017-10-23 17:29:20 +01:00
Dylan K. Taylor
3ed8855894
fix drop chance of rotten flesh
2017-10-23 12:35:57 +01:00
Dylan K. Taylor
f25255e46c
fix zombie drops
2017-10-23 12:24:34 +01:00
Dylan K. Taylor
7db8345424
Added rough support for reading entity saves with multiple save IDs (for PC 1.11 compatibility)
...
this will still always save using the legacy format to remain compatible with PC < 1.11.
TODO: entirely separate entity NBT format from entity implementation for proper multi-format compatibility
2017-10-22 10:16:24 +01:00
Dylan K. Taylor
1dd2203ee5
Fixed burning mobs not getting onfire data flag set when read from disk
...
they'd just flash red and take damage for no apparent reason
2017-10-21 12:36:30 +01:00
Dylan K. Taylor
18e4e5364f
Fixed getBlock() performance degradation caused by 781de3efabcd526281fd1adc8ce881d408471563, added Level->getBlockAt() to avoid creating vectors everywhere
2017-10-20 13:22:49 +01:00
Dylan K. Taylor
98cfd0b398
fix entity rotation changes not getting broadcast until the entity moves
2017-10-20 10:13:19 +01:00
Dylan K. Taylor
a245615531
fixed non-living entities lingering for a second after being kill()ed
...
only living entities should have death animation time
2017-10-19 20:51:50 +01:00
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
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
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
3b5eb45ff5
More usages of Item->isNull()
2017-10-16 12:29:39 +01:00
Dylan K. Taylor
68809d992b
Added BaseInventory->removeAllViewers()
2017-10-16 11:15:03 +01:00
Dylan K. Taylor
15d6fd86e2
Added basic support for blocks with multiple AABBs, fixed stairs ( #1303 )
2017-10-12 16:29:24 +01:00
Dylan K. Taylor
0c092a7ceb
reduced size of arrow bounding box
...
as per MCPE addon data
2017-10-12 16:21:23 +01:00
Dylan K. Taylor
7e9b89e48a
Make Entity->checkObstruction() less confusing
2017-10-12 11:59:02 +01:00
Dylan K. Taylor
be2d134994
Added API to allow flagging an entity not to be saved to disk when its chunk is saved ( #1452 )
2017-10-11 16:09:08 +01:00
Dylan K. Taylor
246c6daef6
how irritating
2017-10-09 11:30:11 +01:00
Dylan K. Taylor
2601e35990
Cleaned up and added API for entity air supply, fixed oxygen being used in creative/spectator
...
this commit also includes respiration checks because it's cherry-picked
from api3/blocks, but respiration won't work until it's registered.
2017-10-09 11:28:40 +01:00
Dylan K. Taylor
3738ab1f8a
Fixed villager professions being useless
2017-10-08 14:14:42 +01:00
Dylan K. Taylor
8fafef2f7f
Added tagType parameter to ListTag constructor, remove some boilerplate code
2017-10-08 13:28:01 +01:00
Dylan K. Taylor
a7e9aa4bc1
Fixed falling sand replacing wrong blocks when moved slightly by currents
2017-10-05 17:38:32 -04:00
Dylan K. Taylor
a06ff3d96b
Revert "Fixed falling blocks glitching when spawned"
...
This reverts commit 827ee5d4f9b080bbe36b3ec74d423357e6e32474.
can't ever seem to get falling blocks right... should I blame mojang?
2017-09-29 14:22:03 +01:00
Dylan K. Taylor
e6cecabf3f
New skin API, add support for custom capes & custom geometry ( #1416 )
...
* Added support for changing skins ingame, custom capes & geometry
* Use PlayerSkinPacket for setting Human skin instead of PlayerList hack
2017-09-29 14:09:00 +01:00
Dylan K. Taylor
d0bf0ff083
Imports cleanup
2017-09-28 10:51:05 +01:00
Dylan K. Taylor
7dc1fc54b1
Oops, didn't mean to commit this
2017-09-27 20:34:37 +01:00
Dylan K. Taylor
bae42dc0d9
Fixed incorrect field names in PlayerSkinPacket
2017-09-27 17:55:04 +01:00
Dylan K. Taylor
c79a5509f6
Implemented concrete powder
...
this is a little buggy with water updating due to a hack for liquids to fix a CPU leak (210bdc2436269ca4d634aa791b1054e594769baa), but everything works fine when a block nearby gets updated.
2017-09-26 18:56:43 +01:00
Dylan K. Taylor
827ee5d4f9
Fixed falling blocks glitching when spawned
...
this now (finally) works flawlessly
2017-09-26 18:33:34 +01:00