Dylan K. Taylor
68809d992b
Added BaseInventory->removeAllViewers()
2017-10-16 11:15:03 +01:00
Dylan K. Taylor
cd8006e242
Use constructor parameter for ListTags instead of setTagType() and removed some unnecessary type setting
2017-10-14 13:49:24 +01:00
Dylan K. Taylor
b7a9e10d49
Some cleanup to how tiles are created
2017-10-11 18:08:08 +01:00
Dylan K. Taylor
7267f1a520
Fixed some usages of Item constants for Blocks
...
only cosmetic change
2017-10-09 10:37:19 +01:00
Dylan K. Taylor
c47f1f572c
Added API method Item->pop()
2017-09-27 10:56:04 +01:00
Dylan K. Taylor
043ae487de
Fixed some inconsistent uses of new ShortTag
vs setValue() in Furnace
2017-09-24 10:34:25 +01:00
Dylan K. Taylor
f12701e582
Fixed possible undefined NBT in Furnace, close #1398
2017-09-24 10:29:36 +01:00
Dylan K. Taylor
ef6250967f
Use Item->isNull() more
2017-09-21 10:29:29 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
Dylan K. Taylor
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
Dylan K. Taylor
1f70a7830e
Branch merge
2017-08-20 21:07:19 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +01:00
Dylan K. Taylor
6efa4343b1
Cleaned up fuel duration handling, fixed some fuel items not working in furnaces
2017-08-17 10:22:47 +01:00
Dylan K. Taylor
3ad1b1ba7f
Added some ContainerSetDataPacket constants
2017-08-08 12:19:11 +01:00
Dylan K. Taylor
06083d6dc4
s/Item/Block
2017-08-07 16:26:27 +01:00
Muqsit Rayyan
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
Dylan K. Taylor
7c00982fff
Fixed furnaces crashing the server
...
Beware ListTag indices being strings! Should be impossible, but the NBT library is poorly designed.
2017-07-15 21:53:43 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
890f72dbf2
Type-hinted NBT tag constructors, made getValue() and setValue() more strict, fix dozens of assorted related bugs
2017-06-08 19:17:52 +01:00
Dylan K. Taylor
d358e13868
Strict type all the things and fix lots of assorted bugs exposed by strict types ( #993 )
...
Strict type all the things
2017-06-08 11:21:51 +01:00
Dylan K. Taylor
cc1d1b0f45
Fix type error in Furnace due to useless floor(), close #1031
2017-06-08 09:12:58 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
4245274aec
Merge branch 'master' into api3/network
2017-03-25 21:26:46 +00:00
Dylan K. Taylor
2673e4de7f
More anti-leak measures for double chest inventory issues
2017-03-19 11:25:56 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
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
Dylan K. Taylor
e51a2725de
Remove circular dependency between Item and NBT modules ( #121 )
2016-11-25 10:17:50 +00:00
SOF3
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
Dylan K. Taylor
ad64a074cb
Fix furnace NBT assertion errors and inventory not working
2016-10-01 14:14:55 +01:00
NoHaxJustTryHqrd
2d95bdc10f
Remove derp semicolon ( #11 )
...
* Update Furnace.php
* fix formatting
2016-09-30 19:20:03 +01:00
dktapps
4198c445b0
Fixed Furnace crash
2016-09-28 13:59:53 +01:00
Shoghi Cervantes
8768b7fdbd
Merge remote-tracking branch 'origin/mcpe-0.12' into php7
2015-09-17 12:25:05 +02:00
0929hitoshi
9665dfd63e
Changing the return value of getName
2015-09-16 01:21:07 +09:00
Shoghi Cervantes
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
Shoghi Cervantes
31ef7721b1
Removed network channels, bumped protocol
2015-08-12 14:59:48 +02:00
Shoghi Cervantes
3e2cce3c2c
use cleanup
2015-08-07 21:26:24 +02:00
Shoghi Cervantes
75b7b03857
Added support for more NBT data, renaming inventories, fixed tags not being saved, added support for tags in /give
2015-08-07 16:28:27 +02:00
Shoghi Cervantes
02cb9d69a9
Save items properly on several places, added NBT::getItemHelper() and NBT::putItemHelper()
2015-08-06 21:44:00 +02:00
Shoghi Cervantes
091d0b3ff9
Added compound tag checking for Item->equals()
2015-08-06 20:25:22 +02:00
Shoghi Cervantes
4258e22c02
Made some changes for 0.12
2015-08-01 19:14:44 +02:00
Shoghi Cervantes
7bafa217c8
Fixed some saving
2015-06-05 16:46:53 +02:00
Shoghi Cervantes
76e6ccebd5
Proper recipe matching from network, bumped protocol, build 11, fixed entities not being killed on void ( closes #3021 ), fixes achievement acquireIron not being possible ( fixes #2600 )
2015-05-15 13:59:29 +02:00
Shoghi Cervantes
f88aed1208
Fixed NBT parsing on false properties
2015-04-20 13:57:16 +02:00
Shoghi Cervantes
0b176b3fe0
Implemented Channeled packet sending
2015-04-14 18:24:40 +02:00
Shoghi Cervantes
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
Shoghi Cervantes
a98da3bab1
Renamed old getID() calls to getId()
2014-12-07 15:21:32 +01:00