PHP Class pocketmine\event\entity\EntityEatEvent

Inheritance: extends EntityEvent, implements pocketmine\event\Cancellable
显示文件 Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Properties

Property Type Description
$handlerList

Public Methods

Method Description
__construct ( Entity $entity, pocketmine\item\FoodSource $foodSource )
getAdditionalEffects ( ) : Effect[]
getFoodRestore ( )
getFoodSource ( )
getResidue ( )
getSaturationRestore ( )
setAdditionalEffects ( array $additionalEffects )
setFoodRestore ( integer $foodRestore )
setResidue ( $residue )
setSaturationRestore ( float $saturationRestore )

Method Details

__construct() public method

public __construct ( Entity $entity, pocketmine\item\FoodSource $foodSource )
$entity pocketmine\entity\Entity
$foodSource pocketmine\item\FoodSource

getAdditionalEffects() public method

public getAdditionalEffects ( ) : Effect[]
return pocketmine\entity\Effect[]

getFoodRestore() public method

public getFoodRestore ( )

getFoodSource() public method

public getFoodSource ( )

getResidue() public method

public getResidue ( )

getSaturationRestore() public method

setAdditionalEffects() public method

public setAdditionalEffects ( array $additionalEffects )
$additionalEffects array

setFoodRestore() public method

public setFoodRestore ( integer $foodRestore )
$foodRestore integer

setResidue() public method

public setResidue ( $residue )

setSaturationRestore() public method

public setSaturationRestore ( float $saturationRestore )
$saturationRestore float

Property Details

$handlerList public_oe static_oe property

public static $handlerList