PHP Class pocketmine\block\RedstoneWire

Inheritance: extends pocketmine\block\RedstoneSource
Show file Open project: iTXTech/Genisys

Protected Properties

Property Type Description
$id

Public Methods

Method Description
__construct ( $meta )
activate ( array $ignore = [] )
calcSignal ( $strength = 15, $type = self::ON, array $hasUpdated = [] )
deactivate ( array $ignore = [] )
getConnectedWires ( )
getDrops ( Item $item ) : array
getHighestStrengthAround ( )
getName ( ) : string
getPowerSources ( RedstoneWire $wire, array $powers = [], array $hasUpdated = [], $isStart = false )
getStrength ( )
getUnconnectedSide ( )
isActivated ( Block $from = null )
onBreak ( Item $item )
onUpdate ( $type )
place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )
updateNormalWire ( Block $block, $strength, $type, array $hasUpdated )

Method Details

__construct() public method

public __construct ( $meta )

activate() public method

public activate ( array $ignore = [] )
$ignore array

calcSignal() public method

public calcSignal ( $strength = 15, $type = self::ON, array $hasUpdated = [] )
$hasUpdated array

deactivate() public method

public deactivate ( array $ignore = [] )
$ignore array

getConnectedWires() public method

public getConnectedWires ( )

getDrops() public method

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
return array

getHighestStrengthAround() public method

getName() public method

public getName ( ) : string
return string

getPowerSources() public method

public getPowerSources ( RedstoneWire $wire, array $powers = [], array $hasUpdated = [], $isStart = false )
$wire RedstoneWire
$powers array
$hasUpdated array

getStrength() public method

public getStrength ( )

getUnconnectedSide() public method

public getUnconnectedSide ( )

isActivated() public method

public isActivated ( Block $from = null )
$from Block

onBreak() public method

public onBreak ( Item $item )
$item pocketmine\item\Item

onUpdate() public method

public onUpdate ( $type )

place() public method

public place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )
$item pocketmine\item\Item
$block Block
$target Block
$player pocketmine\Player

updateNormalWire() public method

public updateNormalWire ( Block $block, $strength, $type, array $hasUpdated )
$block Block
$hasUpdated array

Property Details

$id protected property

protected $id