Lever
Extends Flowable
Properties
$activated protected
php
protected bool $activated$facing protected
php
protected \pocketmine\block\utils\LeverFacing $facingMethods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetFacing()
php
public function getFacing() : \pocketmine\block\utils\LeverFacinggetStrongPower() 5.46.0
php
public function getStrongPower(int $face) : intgetSupportFace() 5.46.0
php
public function getSupportFace() : intReturns the side of the lever where the block it is attached to is.
getWeakPower() 5.46.0
php
public function getWeakPower(int $face) : intisActivated()
php
public function isActivated() : boolisRedstoneSource() 5.46.0
php
public function isRedstoneSource() : boolonBreak() 5.46.0
php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : 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) : boolsetActivated()
php
public function setActivated(bool $activated) : selfsetFacing()
php
public function setFacing(\pocketmine\block\utils\LeverFacing $facing) : self