Hopper
Extends Transparent
Implements PoweredByRedstone
Methods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCollectionArea() 5.46.0
php
public function getCollectionArea() : \pocketmine\math\AxisAlignedBBArea in which item entities are collected: the bowl and the whole block space above the hopper.
getFacing()
php
public function getFacing() : intgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange() 5.46.0
php
public function onNearbyBlockChange() : voidA powered hopper is locked (toggle_bit).
onPostPlace() 5.46.0
php
public function onPostPlace() : voidonScheduledUpdate()
php
public function onScheduledUpdate() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetFacing()
php
public function setFacing(int $facing) : selfwakeUp() 5.46.0
php
public function wakeUp() : voidSchedules a transfer attempt as soon as the cooldown allows. Hoppers are not ticked while idle: they are woken up when an inventory they use changes, when an item lands above them, when a neighbour changes or when they are unlocked.
