Skull: added block property APIs

I need these for my R13 block deserializer.
This commit is contained in:
Dylan K. Taylor 2021-04-27 19:22:45 +01:00
parent 0aa0d77307
commit c9cf33b21b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -91,6 +91,25 @@ class Skull extends Flowable{
return $this->skullType;
}
public function getFacing() : int{ return $this->facing; }
/** @return $this */
public function setFacing(int $facing) : self{
if($facing === Facing::DOWN){
throw new \InvalidArgumentException("Skull may not face DOWN");
}
$this->facing = $facing;
return $this;
}
public function isNoDrops() : bool{ return $this->noDrops; }
/** @return $this */
public function setNoDrops(bool $noDrops) : self{
$this->noDrops = $noDrops;
return $this;
}
/**
* @return AxisAlignedBB[]
*/