Skip to content

Trapdoor ​

class · pocketmine\block\Trapdoor · source

Extends Transparent
Implements HorizontalFacing

Properties ​

$open protected ​

php
protected bool $open

$top protected ​

php
protected bool $top

Methods ​

describeBlockOnlyState() protected ​

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

getSupportType() ​

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

isOpen() ​

php
public function isOpen() : bool

isTop() ​

php
public function isTop() : 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() 5.46.0 ​

php
public function onNearbyBlockChange() : 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

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setOpen() ​

php
public function setOpen(bool $open) : self

setOpenAndUpdate() 5.46.0 protected ​

php
protected function setOpenAndUpdate(bool $open) : void

setTop() ​

php
public function setTop(bool $top) : self

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