Bed
Extends Transparent
Implements Colored, HorizontalFacing
Properties
$head protected
php
protected bool $head$occupied protected
php
protected bool $occupiedMethods
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) : arraygetMaxStackSize()
php
public function getMaxStackSize() : intgetOtherHalf()
php
public function getOtherHalf() : ?\pocketmine\block\BedgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisHeadPart()
php
public function isHeadPart() : boolisOccupied()
php
public function isOccupied() : boolonEntityLand()
php
public function onEntityLand(\pocketmine\entity\Entity $entity) : ?floatonInteract()
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() : arraysetHead()
php
public function setHead(bool $head) : selfsetOccupied()
php
public function setOccupied(bool $occupied = true) : selfwriteStateToWorld()
php
public function writeStateToWorld() : void