Name | Parameters | Return value | Notes |
GetPotionColor |
ItemDamage |
number |
(STATIC) Returns the potion color (used by the client for visuals), based on the potion's damage value |
GetPotionEffectDuration |
ItemDamage |
number |
(STATIC) Returns the effect duration, in ticks, based on the potion's damage value |
GetPotionEffectIntensity |
ItemDamage |
short |
(STATIC) Retrieves the intensity level from the potion's damage value. Returns 0 for level I potions, 1 for level II potions. |
GetPotionEffectType |
ItemDamage |
cEntityEffect |
(STATIC) Translates the potion's damage value into the entity effect that the potion gives |
IsPotionDrinkable |
ItemDamage |
boolean |
(STATIC) Returns true if the potion with the given damage is drinkable |