Skip to content

RedstoneRepeater ​

class · pocketmine\block\RedstoneRepeater · source

Extends Flowable
Implements PoweredByRedstone, HorizontalFacing

Constants ​

MAX_DELAY ​

php
public const MAX_DELAY = 4

MIN_DELAY ​

php
public const MIN_DELAY = 1

Properties ​

$delay protected ​

php
protected int $delay

Methods ​

connectsToRedstoneWire() 5.46.0 ​

php
public function connectsToRedstoneWire(int $face) : bool

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getDelay() ​

php
public function getDelay() : int

getDelayTicks() 5.46.0 ​

php
public function getDelayTicks() : int

Returns the number of game ticks between an input change and the output change.

getOutputFace() 5.46.0 ​

php
public function getOutputFace() : int

The 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) : int

getWeakPower() 5.46.0 ​

php
public function getWeakPower(int $face) : int

isLocked() 5.46.0 ​

php
public function isLocked() : bool

A repeater is locked when a powered repeater or comparator points into one of its sides.

isRedstoneSource() 5.46.0 ​

php
public function isRedstoneSource() : bool

onBreak() 5.46.0 ​

php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

onScheduledUpdate() 5.46.0 ​

php
public function onScheduledUpdate() : void

place() ​

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) : bool

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setDelay() ​

php
public function setDelay(int $delay) : self

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.