Skip to content

MovingBlock 5.46.0 ​

class · pocketmine\block\MovingBlock · source

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() : bool

getDrops() ​

php
public function getDrops(\pocketmine\item\Item $item) : array

getPickedItem() ​

php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\Item

getPistonPushReaction() ​

php
public function getPistonPushReaction() : \pocketmine\block\utils\PistonPushReaction

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

onScheduledUpdate() ​

php
public function onScheduledUpdate() : void

place() ​

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) : bool

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

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