PHP Class pocketmine\block\EnchantingTable

Inheritance: extends Transparent, implements pocketmine\block\LightSource
Show file Open project: iTXTech/Genisys

Protected Properties

Property Type Description
$id

Public Methods

Method Description
__construct ( )
canBeActivated ( ) : boolean
getBoundingBox ( )
getDrops ( Item $item ) : array
getHardness ( )
getLightLevel ( )
getName ( ) : string
getResistance ( )
getToolType ( )
onActivate ( Item $item, Player $player = null )
place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )

Method Details

__construct() public method

public __construct ( )

canBeActivated() public method

public canBeActivated ( ) : boolean
return boolean

getBoundingBox() public method

public getBoundingBox ( )

getDrops() public method

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

getHardness() public method

public getHardness ( )

getLightLevel() public method

public getLightLevel ( )

getName() public method

public getName ( ) : string
return string

getResistance() public method

public getResistance ( )

getToolType() public method

public getToolType ( )

onActivate() public method

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

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