Block: added a bunch of state manipulation APIs

This commit is contained in:
Dylan K. Taylor
2020-11-03 19:13:32 +00:00
parent 0a8dc3edd3
commit 32929925aa
30 changed files with 374 additions and 0 deletions

View File

@ -63,6 +63,22 @@ class Leaves extends Transparent{
return 0b1100;
}
public function isNoDecay() : bool{ return $this->noDecay; }
/** @return $this */
public function setNoDecay(bool $noDecay) : self{
$this->noDecay = $noDecay;
return $this;
}
public function isCheckDecay() : bool{ return $this->checkDecay; }
/** @return $this */
public function setCheckDecay(bool $checkDecay) : self{
$this->checkDecay = $checkDecay;
return $this;
}
public function blocksDirectSkyLight() : bool{
return true;
}