| Constructor and Description | 
|---|
PotionEffect(PotionEffectType type)
Create a new potion effect. 
 | 
PotionEffect(PotionEffectType type,
            int duration,
            int amplifier)
Create a new option effect. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
PotionEffect | 
clone()  | 
int | 
getAmplifier()
Get the amplifier of the potion effect
 By default, it's 0 to make the level to 1. 
 | 
int | 
getDuration()
Get the duration of the potion effect 
 | 
PotionEffectType | 
getType()
Get the potion effect type 
 | 
public PotionEffect(PotionEffectType type)
type - the type of the potion effectpublic PotionEffect(PotionEffectType type, int duration, int amplifier)
type - the type of the potion effectduration - the duration (in seconds) of the effectamplifier - the amplifier of the potion effectpublic PotionEffectType getType()
public int getDuration()
public int getAmplifier()
public PotionEffect clone()