RedstoneRepeater
Extends Flowable
Implements PoweredByRedstone, HorizontalFacing
Constants
MAX_DELAY
php
public const MAX_DELAY = 4MIN_DELAY
php
public const MIN_DELAY = 1Properties
$delay protected
php
protected int $delayMethods
connectsToRedstoneWire() 5.46.0
php
public function connectsToRedstoneWire(int $face) : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetDelay()
php
public function getDelay() : intgetDelayTicks() 5.46.0
php
public function getDelayTicks() : intReturns the number of game ticks between an input change and the output change.
getOutputFace() 5.46.0
php
public function getOutputFace() : intThe repeater takes its input from the block on its facing side and outputs on the opposite side.
getStrongPower() 5.46.0
php
public function getStrongPower(int $face) : intgetWeakPower() 5.46.0
php
public function getWeakPower(int $face) : intisLocked() 5.46.0
php
public function isLocked() : boolA repeater is locked when a powered repeater or comparator points into one of its sides.
isRedstoneSource() 5.46.0
php
public function isRedstoneSource() : boolonBreak() 5.46.0
php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange() 5.46.0
php
public function onNearbyBlockChange() : voidonScheduledUpdate() 5.46.0
php
public function onScheduledUpdate() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetDelay()
php
public function setDelay(int $delay) : self