Skip to content

PistonHead 5.46.0 ​

class · pocketmine\block\PistonHead · source

Extends Transparent
Implements AnyFacing

Head of an extended piston (piston_arm_collision / sticky_piston_arm_collision). Its facing is the facing of the piston it belongs to.

Methods ​

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAffectedBlocks() ​

php
public function getAffectedBlocks() : array

getDropsForCompatibleTool() ​

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

getPickedItem() ​

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

getPiston() ​

php
public function getPiston() : ?\pocketmine\block\Piston

Returns the piston this head belongs to, if any.

getPistonPushReaction() ​

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

getSupportType() ​

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

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

isSticky() ​

php
public function isSticky() : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

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.