Skip to content

Door ​

class · pocketmine\block\Door · source

Extends Transparent
Implements HorizontalFacing

Properties ​

$hingeRight protected ​

php
protected bool $hingeRight

$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

getAffectedBlocks() ​

php
public function getAffectedBlocks() : array

getDrops() ​

php
public function getDrops(\pocketmine\item\Item $item) : array

getSupportType() ​

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

isHingeRight() ​

php
public function isHingeRight() : bool

isOpen() ​

php
public function isOpen() : bool

isSolid() ​

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

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

readStateFromWorld() ​

php
public function readStateFromWorld() : \pocketmine\block\Block

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setHingeRight() ​

php
public function setHingeRight(bool $hingeRight) : self

setOpen() ​

php
public function setOpen(bool $open) : self

setOpenAndUpdate() 5.46.0 protected ​

php
protected function setOpenAndUpdate(bool $open) : void

Sets the open state of both halves in the world and plays the door sound.

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.