Stair
Extends Transparent
Implements HorizontalFacing
Properties
$shape protected
php
protected \pocketmine\block\utils\StairShape $shape$upsideDown protected
php
protected bool $upsideDownMethods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidSince 1.26.50 the stair shape is a real block state (minecraft:corner) which the client no longer computes from the neighbours, so it's part of our state too and gets recomputed on block changes.
getShape()
php
public function getShape() : \pocketmine\block\utils\StairShapegetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisUpsideDown()
php
public function isUpsideDown() : boolonNearbyBlockChange() 5.46.0
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) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arrayrecalculateShape() 5.46.0 protected
php
protected function recalculateShape() : boolRecomputes the shape from the neighbouring stairs. Returns true if it changed.
setShape()
php
public function setShape(\pocketmine\block\utils\StairShape $shape) : selfsetUpsideDown()
php
public function setUpsideDown(bool $upsideDown) : self