Make state setters fluent, clean up some BlockFactory noise

This commit is contained in:
Dylan K. Taylor
2018-12-05 15:03:59 +00:00
parent ceef3110d7
commit 2014ebccd8
7 changed files with 49 additions and 32 deletions

View File

@ -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{