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

@ -49,6 +49,17 @@ class Farmland extends Transparent{
return 0b111;
}
public function getWetness() : int{ return $this->wetness; }
/** @return $this */
public function setWetness(int $wetness) : self{
if($wetness < 0 || $wetness > 7){
throw new \InvalidArgumentException("Wetness must be in range 0-7");
}
$this->wetness = $wetness;
return $this;
}
/**
* @return AxisAlignedBB[]
*/