Skip to content

Tripwire ​

class · pocketmine\block\Tripwire · source

Extends Flowable
Implements HorizontalConnections

Properties ​

$connected protected ​

php
protected bool $connected

$disarmed protected ​

php
protected bool $disarmed

$suspended protected ​

php
protected bool $suspended

$triggered protected ​

php
protected bool $triggered

Methods ​

asItem() ​

php
public function asItem() : \pocketmine\item\Item

canConnectTo() 5.46.0 protected ​

php
protected function canConnectTo(\pocketmine\block\Block $block, int $facing) : bool

describeBlockOnlyState() protected ​

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

getTriggerBox() 5.46.0 protected ​

php
protected function getTriggerBox() : \pocketmine\math\AxisAlignedBB

Returns the area entities must touch to trigger the wire.

hasEntityCollision() 5.46.0 ​

php
public function hasEntityCollision() : bool

isConnected() ​

php
public function isConnected() : bool

isDisarmed() ​

php
public function isDisarmed() : bool

isSuspended() ​

php
public function isSuspended() : bool

isTriggered() ​

php
public function isTriggered() : bool

onBreak() 5.46.0 ​

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

onEntityInside() 5.46.0 ​

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

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

onPostPlace() 5.46.0 ​

php
public function onPostPlace() : void

onScheduledUpdate() 5.46.0 ​

php
public function onScheduledUpdate() : void

place() 5.46.0 ​

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

setConnected() ​

php
public function setConnected(bool $connected) : self

setDisarmed() ​

php
public function setDisarmed(bool $disarmed) : self

setSuspended() ​

php
public function setSuspended(bool $suspended) : self

setTriggered() ​

php
public function setTriggered(bool $triggered) : self

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