mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Block: added a bunch of state manipulation APIs
This commit is contained in:
@ -73,6 +73,22 @@ class Stair extends Transparent{
|
||||
}
|
||||
}
|
||||
|
||||
public function isUpsideDown() : bool{ return $this->upsideDown; }
|
||||
|
||||
/** @return $this */
|
||||
public function setUpsideDown(bool $upsideDown) : self{
|
||||
$this->upsideDown = $upsideDown;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getShape() : StairShape{ return $this->shape; }
|
||||
|
||||
/** @return $this */
|
||||
public function setShape(StairShape $shape) : self{
|
||||
$this->shape = $shape;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function recalculateCollisionBoxes() : array{
|
||||
$topStepFace = $this->upsideDown ? Facing::DOWN : Facing::UP;
|
||||
$bbs = [
|
||||
|
Reference in New Issue
Block a user