266a253c03
Remove dead imports
2018-01-05 19:48:04 +00:00
90fc649441
Fixed bad PhpDoc leftovers from NBT streams refactor
2018-01-04 20:32:06 +00:00
c747c7d025
Throw exceptions when entities/tiles are created on chunks that don't exist
...
These assertions don't make sense. Since the chunk field is used below in both cases, the chunk should **never** be null no matter what.
2018-01-02 13:12:54 +00:00
965c19375f
NBT: Split up concerns of endianness and varint NBT into their own classes, separate stream handling from NBT class
...
The remaining methods, constants and fields in the NBT class now pertain to generic NBT functionality (except for the matchList()/matchTree() methods, but that's a job for another time). All NBT I/O specific logic has now been moved to NBTStream and its descendents.
2017-12-30 14:55:45 +00:00
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
686e1c4470
Implement ender chest ( #1462 )
2017-11-22 14:25:21 +00:00
8d59843020
Order tile constants alphabetically
2017-11-22 14:00:41 +00:00
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
e0654b85ba
get rid of dynamic field assignments
...
nearly there now... eventually
2017-11-17 10:43:51 +00:00
2794df34ab
Basic implementation of banners, including API to modify them with ease. ( #1331 )
...
Banner crafting is NOT implemented yet.
2017-11-15 11:10:46 +00:00
827ee5ff33
more constants in Tile
2017-11-08 10:49:15 +00:00
f8e6438efe
updated some NBT for tiles
2017-10-31 18:22:06 +00:00
91c256f1a9
Added Level->getTileAt()
2017-10-30 13:36:42 +00:00
93443992be
Fixed chests not getting updated properly on pair/unpair, close #1514
...
it wasn't clearing spawn compound caches or chunk caches
2017-10-30 11:50:02 +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
18e4e5364f
Fixed getBlock() performance degradation caused by 781de3efab
, added Level->getBlockAt() to avoid creating vectors everywhere
2017-10-20 13:22:49 +01:00
5a353012de
Clean up some unused imports
2017-10-19 16:39:34 +01:00
2c34648c3d
fixed second half of double chest items getting deleted, close #1477
2017-10-18 12:29:57 +01:00
7f0a961526
"Creator" tag on signs may not exist
2017-10-17 13:35:31 +01:00
68ac4f538f
Added ContainerTrait, reduce copy-pasted code in Tile
2017-10-16 20:01:17 +01:00
f4ff5d81ea
Added missing parent calls for saveNBT() in Chest and Furnace
2017-10-16 18:56:48 +01:00
28a840d161
Make use of CompoundTag->hasTag()
2017-10-16 18:32:08 +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
45b003ac2e
Removed unnecessary return from Sign
2017-10-16 16:10:33 +01:00
af85659c63
Remove redundant property from Tile
2017-10-16 12:35:32 +01:00
95fa1824c8
Use a trait for nameable tiles instead of repeating code
2017-10-16 12:32:10 +01:00
3b5eb45ff5
More usages of Item->isNull()
2017-10-16 12:29:39 +01:00
68809d992b
Added BaseInventory->removeAllViewers()
2017-10-16 11:15:03 +01:00
cd8006e242
Use constructor parameter for ListTags instead of setTagType() and removed some unnecessary type setting
2017-10-14 13:49:24 +01:00
b7a9e10d49
Some cleanup to how tiles are created
2017-10-11 18:08:08 +01:00
cef9c4621c
added som PhpDoc to Tile
2017-10-09 17:27:34 +01:00
151681bd80
Remove some dead properties from Tile
2017-10-09 17:25:10 +01:00
327907988b
Fixed a typo in Sign->setText() docs
2017-10-09 16:56:25 +01:00
7267f1a520
Fixed some usages of Item constants for Blocks
...
only cosmetic change
2017-10-09 10:37:19 +01:00
c47f1f572c
Added API method Item->pop()
2017-09-27 10:56:04 +01:00
043ae487de
Fixed some inconsistent uses of new ShortTag
vs setValue() in Furnace
2017-09-24 10:34:25 +01:00
f12701e582
Fixed possible undefined NBT in Furnace, close #1398
2017-09-24 10:29:36 +01:00
ee052f91d4
Fixed some air items with count 1 instead of 0
2017-09-21 10:30:14 +01:00
ef6250967f
Use Item->isNull() more
2017-09-21 10:29:29 +01:00
85b2b2ae2e
Don't send tile inventory slots during the constructor
...
This is completely pointless and a waste of time.
2017-09-20 10:15:28 +01:00
1fb6d12a6b
Add getInventory() to Container interface where it's actually useful
2017-09-19 19:26:41 +01:00
78d49f8e66
Merge branch 'php/7.0' into mcpe-1.2
2017-09-03 15:02:41 +01:00
0b83c61494
Fixed cyclic reference with chest tiles and DoubleChestInventory
2017-09-03 11:24:34 +01:00
75e32b11b7
Merge branch 'php/7.0' into mcpe-1.2
2017-09-02 18:29:53 +01:00
22d8626e23
Fixed sign bug introduced in #1204 rebase, close #1346
2017-09-02 13:12:55 +01:00
5d75d3d5b6
Merge branch 'php/7.0' into mcpe-1.2
2017-09-01 23:10:58 +01:00
226175f961
setText now nullable instead of overwriting with empty lines ( #1204 )
2017-09-01 08:34:40 +01:00
23752548fe
Address several LevelDB related crashdumps in the crash archive
2017-08-30 15:42:31 +01:00
b5d2402c9b
Merge branch 'master' into mcpe-1.2
2017-08-28 18:02:09 +01:00