Door
Extends Transparent
Implements HorizontalFacing
Properties
$hingeRight protected
php
protected bool $hingeRight$open protected
php
protected bool $open$top protected
php
protected bool $topMethods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetAffectedBlocks()
php
public function getAffectedBlocks() : arraygetDrops()
php
public function getDrops(\pocketmine\item\Item $item) : arraygetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisHingeRight()
php
public function isHingeRight() : boolisOpen()
php
public function isOpen() : boolisSolid()
php
public function isSolid() : boolisTop()
php
public function isTop() : 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) : boolreadStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlockrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetHingeRight()
php
public function setHingeRight(bool $hingeRight) : selfsetOpen()
php
public function setOpen(bool $open) : selfsetOpenAndUpdate() 5.46.0 protected
php
protected function setOpenAndUpdate(bool $open) : voidSets the open state of both halves in the world and plays the door sound.
setTop()
php
public function setTop(bool $top) : self