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:
@ -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[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user