Skip to content

RedstoneWire ​

class · pocketmine\block\RedstoneWire · source

Extends Flowable
Implements AnalogRedstoneSignalEmitter

Redstone dust. Its power level is solved per network by \pocketmine\world\redstone\RedstoneEngine; the connection shape is computed by the client (Bedrock has no block state for it).

Methods ​

asItem() ​

php
public function asItem() : \pocketmine\item\Item

getStrongPower() 5.46.0 ​

php
public function getStrongPower(int $face) : int

getWeakPower() 5.46.0 ​

php
public function getWeakPower(int $face) : int

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

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

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