PHP Class pocketmine\block\Cake

Inheritance: extends Transparent, implements pocketmine\item\FoodSource
Datei anzeigen Open project: iTXTech/Genisys

Protected Properties

Property Type Description
$id

Public Methods

Method Description
__construct ( $meta )
canBeActivated ( ) : boolean
getAdditionalEffects ( ) : array
getDrops ( Item $item ) : array
getFoodRestore ( ) : integer
getHardness ( )
getName ( ) : string
getResidue ( )
getSaturationRestore ( ) : float
onActivate ( Item $item, Player $player = null )
onUpdate ( $type )
place ( Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null )

Protected Methods

Method Description
recalculateBoundingBox ( )

Method Details

__construct() public method

public __construct ( $meta )

canBeActivated() public method

public canBeActivated ( ) : boolean
return boolean

getAdditionalEffects() public method

public getAdditionalEffects ( ) : array
return array

getDrops() public method

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

getFoodRestore() public method

public getFoodRestore ( ) : integer
return integer

getHardness() public method

public getHardness ( )

getName() public method

public getName ( ) : string
return string

getResidue() public method

public getResidue ( )

getSaturationRestore() public method

public getSaturationRestore ( ) : float
return float

onActivate() public method

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

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

recalculateBoundingBox() protected method

protected recalculateBoundingBox ( )

Property Details

$id protected_oe property

protected $id