diff --git a/src/block/RedstoneRepeater.php b/src/block/RedstoneRepeater.php index 7553dc560..374034060 100644 --- a/src/block/RedstoneRepeater.php +++ b/src/block/RedstoneRepeater.php @@ -65,6 +65,17 @@ class RedstoneRepeater extends Flowable{ return 0b1111; } + public function getDelay() : int{ return $this->delay; } + + /** @return $this */ + public function setDelay(int $delay) : self{ + if($delay < 1 || $delay > 4){ + throw new \InvalidArgumentException("Delay must be in range 1-4"); + } + $this->delay = $delay; + return $this; + } + /** * @return AxisAlignedBB[] */