Skip to content

WoodenButton ​

class · pocketmine\block\WoodenButton · source

Extends Button
Implements WoodMaterial

Also pressed by arrows and thrown tridents touching it; it stays pressed while they are there.

Methods ​

getActivationTime() protected ​

php
protected function getActivationTime() : int

getFuelTime() ​

php
public function getFuelTime() : int

getShape() 5.46.0 ​

php
public function getShape() : \pocketmine\math\AxisAlignedBB

Returns the button's shape, which arrows must touch to press it.

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

onEntityInside() 5.46.0 ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

onScheduledUpdate() 5.46.0 ​

php
public function onScheduledUpdate() : void

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