mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Make state setters fluent, clean up some BlockFactory noise
This commit is contained in:
@ -42,8 +42,14 @@ class RedstoneTorch extends Torch{
|
||||
return $this->lit;
|
||||
}
|
||||
|
||||
public function setLit(bool $lit = true) : void{
|
||||
/**
|
||||
* @param bool $lit
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLit(bool $lit = true) : self{
|
||||
$this->lit = $lit;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLightLevel() : int{
|
||||
|
Reference in New Issue
Block a user