mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Block: added a bunch of state manipulation APIs
This commit is contained in:
@ -87,6 +87,30 @@ class Door extends Transparent{
|
||||
}
|
||||
}
|
||||
|
||||
public function isTop() : bool{ return $this->top; }
|
||||
|
||||
/** @return $this */
|
||||
public function setTop(bool $top) : self{
|
||||
$this->top = $top;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isHingeRight() : bool{ return $this->hingeRight; }
|
||||
|
||||
/** @return $this */
|
||||
public function setHingeRight(bool $hingeRight) : self{
|
||||
$this->hingeRight = $hingeRight;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isOpen() : bool{ return $this->open; }
|
||||
|
||||
/** @return $this */
|
||||
public function setOpen(bool $open) : self{
|
||||
$this->open = $open;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isSolid() : bool{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user