PHP Class pocketmine\item\Potion

Inheritance: extends Food
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $meta, $count = 1 )
canBeConsumed ( ) : boolean
canBeConsumedBy ( Entity $entity ) : boolean
getColor ( integer $meta )
getEffectId ( integer $meta ) : integer
getEffects ( ) : array
getEffectsById ( integer $id ) : array
getMaxStackSize ( ) : integer
getNameByMeta ( integer $meta ) : string
onConsume ( Entity $human )

Method Details

__construct() public méthode

public __construct ( $meta, $count = 1 )

canBeConsumed() public méthode

public canBeConsumed ( ) : boolean
Résultat boolean

canBeConsumedBy() public méthode

public canBeConsumedBy ( Entity $entity ) : boolean
$entity pocketmine\entity\Entity
Résultat boolean

getColor() public static méthode

public static getColor ( integer $meta )
$meta integer

getEffectId() public static méthode

public static getEffectId ( integer $meta ) : integer
$meta integer
Résultat integer

getEffects() public méthode

public getEffects ( ) : array
Résultat array

getEffectsById() public static méthode

public static getEffectsById ( integer $id ) : array
$id integer
Résultat array

getMaxStackSize() public méthode

public getMaxStackSize ( ) : integer
Résultat integer

getNameByMeta() public static méthode

public static getNameByMeta ( integer $meta ) : string
$meta integer
Résultat string

onConsume() public méthode

public onConsume ( Entity $human )
$human pocketmine\entity\Entity