PHP Class pocketmine\item\Potion

Inheritance: extends Food
Mostrar archivo Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method 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 method

public __construct ( $meta, $count = 1 )

canBeConsumed() public method

public canBeConsumed ( ) : boolean
return boolean

canBeConsumedBy() public method

public canBeConsumedBy ( Entity $entity ) : boolean
$entity pocketmine\entity\Entity
return boolean

getColor() public static method

public static getColor ( integer $meta )
$meta integer

getEffectId() public static method

public static getEffectId ( integer $meta ) : integer
$meta integer
return integer

getEffects() public method

public getEffects ( ) : array
return array

getEffectsById() public static method

public static getEffectsById ( integer $id ) : array
$id integer
return array

getMaxStackSize() public method

public getMaxStackSize ( ) : integer
return integer

getNameByMeta() public static method

public static getNameByMeta ( integer $meta ) : string
$meta integer
return string

onConsume() public method

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