Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.potion.PotionType Enum Reference

Public Member Functions

 PotionType (int damageValue, PotionEffectType effect, int maxLevel)
 
PotionEffectType getEffectType ()
 
int getDamageValue ()
 
int getMaxLevel ()
 
boolean isInstant ()
 

Static Public Member Functions

static PotionType getByDamageValue (int damage)
 
static PotionType getByEffect (PotionEffectType effectType)
 

Public Attributes

 WATER =(0, null, 0)
 
 REGEN =(1, PotionEffectType.REGENERATION, 2)
 
 SPEED =(2, PotionEffectType.SPEED, 2)
 
 FIRE_RESISTANCE =(3, PotionEffectType.FIRE_RESISTANCE, 1)
 
 POISON =(4, PotionEffectType.POISON, 2)
 
 INSTANT_HEAL =(5, PotionEffectType.HEAL, 2)
 
 NIGHT_VISION =(6, PotionEffectType.NIGHT_VISION, 1)
 
 WEAKNESS =(8, PotionEffectType.WEAKNESS, 1)
 
 STRENGTH =(9, PotionEffectType.INCREASE_DAMAGE, 2)
 
 SLOWNESS =(10, PotionEffectType.SLOW, 1)
 
 INSTANT_DAMAGE =(12, PotionEffectType.HARM, 2)
 
 WATER_BREATHING =(13, PotionEffectType.WATER_BREATHING, 1)
 
 INVISIBILITY =(14, PotionEffectType.INVISIBILITY, 1)
 
final int maxLevel
 

Detailed Description

Definition at line 3 of file PotionType.java.

Member Function Documentation

static PotionType org.bukkit.potion.PotionType.getByDamageValue ( int  damage)
static
Deprecated:
Magic value

Definition at line 54 of file PotionType.java.

Referenced by org.bukkit.potion.Potion.fromDamage(), and org.bukkit.potion.Potion.Potion().

54  {
55  for (PotionType type : PotionType.values()) {
56  if (type.damageValue == damage)
57  return type;
58  }
59  return null;
60  }
int org.bukkit.potion.PotionType.getDamageValue ( )
Deprecated:
Magic value

Definition at line 37 of file PotionType.java.

Referenced by org.bukkit.potion.Potion.Potion(), and org.bukkit.potion.Potion.toDamageValue().

37  {
38  return damageValue;
39  }

The documentation for this enum was generated from the following file: