MovingBlock 5.46.0
Extends Transparent
Placeholder for a block being moved by a piston. It stands at the block's destination; the piston replaces it with the moved block once its arm has finished moving.
Methods
canBePlaced()
php
public function canBePlaced() : boolgetDrops()
php
public function getDrops(\pocketmine\item\Item $item) : arraygetPickedItem()
php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\ItemgetPistonPushReaction()
php
public function getPistonPushReaction() : \pocketmine\block\utils\PistonPushReactiongetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeonScheduledUpdate()
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() : array