Skip to content

Button ​

abstract class · pocketmine\block\Button · source

Extends Flowable
Implements AnyFacing

Properties ​

$pressed protected ​

php
protected bool $pressed

Methods ​

describeBlockOnlyState() protected ​

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

getActivationTime() protected ​

php
abstract protected function getActivationTime() : int

getStrongPower() 5.46.0 ​

php
public function getStrongPower(int $face) : int

getWeakPower() 5.46.0 ​

php
public function getWeakPower(int $face) : int

isPressed() ​

php
public function isPressed() : bool

isRedstoneSource() 5.46.0 ​

php
public function isRedstoneSource() : bool

onBreak() 5.46.0 ​

php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

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

setPressed() ​

php
public function setPressed(bool $pressed) : self

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