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:
@ -61,6 +61,22 @@ class FenceGate extends Transparent{
|
||||
return 0b1111;
|
||||
}
|
||||
|
||||
public function isOpen() : bool{ return $this->open; }
|
||||
|
||||
/** @return $this */
|
||||
public function setOpen(bool $open) : self{
|
||||
$this->open = $open;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isInWall() : bool{ return $this->inWall; }
|
||||
|
||||
/** @return $this */
|
||||
public function setInWall(bool $inWall) : self{
|
||||
$this->inWall = $inWall;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AxisAlignedBB[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user