[ci skip] add inventory changes to changelog

This commit is contained in:
Dylan K. Taylor 2019-07-02 14:06:11 +01:00
parent b90be8dc5f
commit b0a85155d7

View File

@ -301,6 +301,45 @@ This version features substantial changes to the network system, improving coher
- `pocketmine\plugin\RegisteredListener` -> `pocketmine\event\RegisteredListener`
### Inventory
- All crafting and recipe related classes have been moved to the `pocketmine\crafting` namespace.
- The following classes have been added:
- `CallbackInventoryChangeListener`
- `CreativeInventory`: contains the creative functionality previously embedded in `pocketmine\item\Item`, see Item changes for details
- `InventoryChangeListener`: allows listening (but not interfering with) events in an inventory.
- `transaction\CreateItemAction`
- `transaction\DestroyItemAction`
- The following classes have been renamed:
- `ContainerInventory` -> `BlockInventory`
- The following classes have been removed:
- `CustomInventory`
- `InventoryEventProcessor`
- `Recipe`
- `transaction\CreativeInventoryAction`
- The following API methods have been added:
- `Inventory->addChangeListeners()`
- `Inventory->getChangeListeners()`
- `Inventory->removeChangeListeners()`
- `Inventory->swap()`: swaps the contents of two slots
- The following API methods have been removed:
- `BaseInventory->getDefaultSize()`
- `BaseInventory->setSize()`
- `Inventory->close()`
- `Inventory->dropContents()`
- `Inventory->getName()`
- `Inventory->getTitle()`
- `Inventory->onSlotChange()`
- `Inventory->open()`
- `Inventory->sendContents()`
- `Inventory->sendSlot()`
- `InventoryAction->onExecuteFail()`
- `InventoryAction->onExecuteSuccess()`
- `PlayerInventory->sendCreativeContents()`
- The following API methods have signature changes:
- `Inventory->clear()` now returns `void` instead of `bool`.
- `Inventory->setItem()` now returns `void` instead of `bool`.
- `InventoryAction->execute()` now returns `void` instead of `bool`.
- `BaseInventory->construct()` no longer accepts a list of items to initialize with.
- `PlayerInventory->setItemInHand()` now sends the update to viewers of the player.
### Item
#### General