827ee5ff33
more constants in Tile
2017-11-08 10:49:15 +00:00
48fefae920
Added cache for tile spawn compounds
...
avoids expensive repetetive NBT writes on chunk sends when the tile hasn't been changed
2017-10-27 10:23:48 +01:00
20b86bdea8
Cleaned up tile NBT handling, use new CompoundTag API methods
2017-10-16 16:48:24 +01:00
0b1a9ba062
Added more typehints to Tile namespace
2017-10-16 16:14:44 +01:00
0b2b9126a2
Improved tile spawning
...
There's no need to recreate the spawn packet for every single player, or re-serialize the NBT.
2017-08-27 18:40:18 +01:00
7d3fca83f0
Tile NBT usage enhancements ( #1259 )
...
* Do not create new NBT objects on Tile::getSpawnCompound()
* PocketMine's string formatting
* Remove more useless array indices and create lesser new NBT objects.
* Remove unused imports and type-hint Sign::setText() params
* Do not mess with Sign::setText() params due to #1204
* Fix formatting
* Make getSpawnCompound() final and add abstract addAdditionalSpawnData()
* Make the same changes for Bed tile
* Fix a missing "->" and remove some unneeded int casting.
2017-08-06 12:35:37 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
6ece57e23e
Merge changes from master
2017-04-21 22:48:18 +01:00
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08:00
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
c21197ef17
Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
...
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk
API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
c4d4277a6c
Better BlockEntityDataPacket handling
2016-12-20 13:01:27 +00:00
90957cd908
Some tile improvements and added ItemFrame tile
2016-12-20 12:59:26 +00:00
4c49db6036
New generic in-memory chunk format, fixed 0.17.0.1 chunk loading
...
Terrible performance, needs profiling. TODO: fix this.
2016-11-27 21:57:59 +00:00
ff40c0a070
NBT updates and tile spawns fixed
2016-10-27 10:55:01 +01:00
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
a2734f6dc0
Merged master into php7 to support 0.13.1
2016-01-22 17:36:45 +01:00
963f7ee077
Update Spawnable.php
2015-11-25 21:00:03 +09:00
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
31ef7721b1
Removed network channels, bumped protocol
2015-08-12 14:59:48 +02:00
71490f60f2
Fixed other invisibility issues
2015-06-04 16:51:48 +02:00
840690d801
Replaced old deprecated calls
2015-05-18 15:52:31 +02:00
0b176b3fe0
Implemented Channeled packet sending
2015-04-14 18:24:40 +02:00
5b3ce2da9d
Fixed packets
2015-03-12 15:38:17 +01:00
8601405a88
Fixed CPU leak
2014-10-31 21:07:00 +01:00
db82f76c11
Improved network packets allocation
2014-10-27 20:30:33 +01:00
5fb205493a
Spawnable->spawnToAll() now uses the actual chunk instead of the entire level to spawn
2014-10-07 12:50:53 +02:00
e473cd5e67
Improved unloaded tile entity handling
2014-08-27 18:18:33 +02:00
db7222976e
Code cleanup
2014-08-21 17:26:41 +02:00
1a442b793c
Fixed Tiles/Entities not using the correct chunk type
2014-07-30 18:24:59 +02:00
279a438ae6
Fixed spawning of Tile entities via chunk packets
2014-06-22 18:05:42 +02:00
fa50cbf4b3
Working Threaded Generation
2014-06-10 20:45:09 +02:00
115b4cf4ac
Updated Levels :D
2014-06-09 11:35:52 +02:00
ec055fd8d1
Items spawn, Tiles spawn, both are saved, blocks drop
2014-05-24 17:25:37 +02:00
53749483c3
Implemented new Inventory windows on Player, Chest and Furnace
2014-05-23 20:53:06 +02:00
c1546aac9c
Updated Position to use Weak / strong references for Level objects
2014-05-22 04:14:06 +02:00
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00