PHP Class pocketmine\block\PoweredRepeater

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 = [] )
canBeActivated ( ) : boolean
deactivate ( array $ignore = [] )
deactivateImmediately ( )
getDelayLevel ( ) : integer
getDirection ( ) : integer
getDrops ( Item $item ) : array
getName ( ) : string
getOppositeDirection ( ) : integer
getStrength ( )
isActivated ( Block $from = null )
onActivate ( Item $item, Player $player = null )
onBreak ( Item $item )
onUpdate ( $type )
place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )

Method Details

__construct() public method

public __construct ( $meta )

activate() public method

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

canBeActivated() public method

public canBeActivated ( ) : boolean
return boolean

deactivate() public method

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

deactivateImmediately() public method

getDelayLevel() public method

public getDelayLevel ( ) : integer
return integer

getDirection() public method

public getDirection ( ) : integer
return integer

getDrops() public method

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

getName() public method

public getName ( ) : string
return string

getOppositeDirection() public method

public getOppositeDirection ( ) : integer
return integer

getStrength() public method

public getStrength ( )

isActivated() public method

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

onActivate() public method

public onActivate ( Item $item, Player $player = null )
$item pocketmine\item\Item
$player pocketmine\Player

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

Property Details

$id protected property

protected $id