PHP Класс pocketmine\block\RedstoneWire

Наследование: extends pocketmine\block\RedstoneSource
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$id

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

public __construct ( $meta )

activate() публичный Метод

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

calcSignal() публичный Метод

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

deactivate() публичный Метод

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

getConnectedWires() публичный Метод

public getConnectedWires ( )

getDrops() публичный Метод

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
Результат array

getHighestStrengthAround() публичный Метод

getName() публичный Метод

public getName ( ) : string
Результат string

getPowerSources() публичный Метод

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

getStrength() публичный Метод

public getStrength ( )

getUnconnectedSide() публичный Метод

public getUnconnectedSide ( )

isActivated() публичный Метод

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

onBreak() публичный Метод

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

onUpdate() публичный Метод

public onUpdate ( $type )

place() публичный Метод

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 updateNormalWire ( Block $block, $strength, $type, array $hasUpdated )
$block Block
$hasUpdated array

Описание свойств

$id защищенное свойство

protected $id