ContainerTrait
This trait implements most methods in the Container interface. It should only be used by Tiles.
Methods
canOpenWith()
php
public function canOpenWith(string $key) : boolgetPosition() protected
php
abstract protected function getPosition() : \pocketmine\world\PositiongetRealInventory()
php
abstract public function getRealInventory() : \pocketmine\inventory\InventoryloadItems() protected
php
protected function loadItems(\pocketmine\nbt\tag\CompoundTag $tag) : voidonBlockDestroyedHook() protected
php
protected function onBlockDestroyedHook() : voidsaveItems() protected
php
protected function saveItems(\pocketmine\nbt\tag\CompoundTag $tag) : void