ShulkerBox
Extends Spawnable
Implements ComparatorReadableContainer, Nameable
Constants
TAG_FACING
php
public const TAG_FACING = "facing"Properties
$facing protected
php
protected int $facing$inventory protected
php
protected \pocketmine\block\inventory\ShulkerBoxInventory $inventoryMethods
__construct()
php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)addAdditionalSpawnData() protected
php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidclose()
php
public function close() : voidcopyDataFromItem()
php
public function copyDataFromItem(\pocketmine\item\Item $item) : voidgetCleanedNBT()
php
public function getCleanedNBT() : ?\pocketmine\nbt\tag\CompoundTaggetDefaultName()
php
public function getDefaultName() : stringgetFacing()
php
public function getFacing() : intgetInventory()
php
public function getInventory() : \pocketmine\block\inventory\ShulkerBoxInventorygetRealInventory()
php
public function getRealInventory() : \pocketmine\block\inventory\ShulkerBoxInventoryonBlockDestroyedHook() protected
php
protected function onBlockDestroyedHook() : voidreadSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetFacing()
php
public function setFacing(int $facing) : voidwriteSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void