Hopper
Extends Spawnable
Implements ComparatorReadableContainer, Nameable
Methods
__construct()
php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)close()
php
public function close() : voidgetDefaultName()
php
public function getDefaultName() : stringgetInventory()
php
public function getInventory() : \pocketmine\block\inventory\HopperInventorygetNextTransferTick() 5.46.0
php
public function getNextTransferTick() : intReturns the server tick from which the hopper may move items again.
getRealInventory()
php
public function getRealInventory() : \pocketmine\block\inventory\HopperInventorygetTransferCooldown() 5.46.0
php
public function getTransferCooldown() : intReturns the number of ticks left before the hopper may move items again.
readSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetNextTransferTick() 5.46.0
php
public function setNextTransferTick(int $tick) : voidwriteSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void