Skip to content

Hopper ​

class · pocketmine\block\tile\Hopper · source

Extends Spawnable
Implements ComparatorReadableContainer, Nameable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos)

close() ​

php
public function close() : void

getDefaultName() ​

php
public function getDefaultName() : string

getInventory() ​

php
public function getInventory() : \pocketmine\block\inventory\HopperInventory

getNextTransferTick() 5.46.0 ​

php
public function getNextTransferTick() : int

Returns the server tick from which the hopper may move items again.

getRealInventory() ​

php
public function getRealInventory() : \pocketmine\block\inventory\HopperInventory

getTransferCooldown() 5.46.0 ​

php
public function getTransferCooldown() : int

Returns the number of ticks left before the hopper may move items again.

readSaveData() ​

php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

setNextTransferTick() 5.46.0 ​

php
public function setNextTransferTick(int $tick) : void

writeSaveData() protected ​

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

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