diff --git a/src/block/Skull.php b/src/block/Skull.php index 9a3c09aa4..6b5f13adb 100644 --- a/src/block/Skull.php +++ b/src/block/Skull.php @@ -91,6 +91,12 @@ class Skull extends Flowable{ return $this->skullType; } + /** @return $this */ + public function setSkullType(SkullType $skullType) : self{ + $this->skullType = $skullType; + return $this; + } + public function getFacing() : int{ return $this->facing; } /** @return $this */ @@ -102,6 +108,17 @@ class Skull extends Flowable{ return $this; } + public function getRotation() : int{ return $this->rotation; } + + /** @return $this */ + public function setRotation(int $rotation) : self{ + if($rotation < 0 || $rotation > 15){ + throw new \InvalidArgumentException("Rotation must be a value between 0 and 15"); + } + $this->rotation = $rotation; + return $this; + } + public function isNoDrops() : bool{ return $this->noDrops; } /** @return $this */