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:
@ -48,6 +48,14 @@ class Lantern extends Transparent{
|
||||
return 0b1;
|
||||
}
|
||||
|
||||
public function isHanging() : bool{ return $this->hanging; }
|
||||
|
||||
/** @return $this */
|
||||
public function setHanging(bool $hanging) : self{
|
||||
$this->hanging = $hanging;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLightLevel() : int{
|
||||
return 15;
|
||||
}
|
||||
|
Reference in New Issue
Block a user