mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 21:03:45 +00:00
RedstoneRepeater: added getDelay() and setDelay()
This commit is contained in:
parent
233616aa6a
commit
9ab3c57789
@ -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[]
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user