Skip to content

ContainerTrait ​

trait · pocketmine\block\tile\ContainerTrait · source

This trait implements most methods in the Container interface. It should only be used by Tiles.

Methods ​

canOpenWith() ​

php
public function canOpenWith(string $key) : bool

getPosition() protected ​

php
abstract protected function getPosition() : \pocketmine\world\Position

getRealInventory() ​

php
abstract public function getRealInventory() : \pocketmine\inventory\Inventory

loadItems() protected ​

php
protected function loadItems(\pocketmine\nbt\tag\CompoundTag $tag) : void

onBlockDestroyedHook() protected ​

php
protected function onBlockDestroyedHook() : void

saveItems() protected ​

php
protected function saveItems(\pocketmine\nbt\tag\CompoundTag $tag) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.