net.minecraft.src
Class PotionEffect
java.lang.Object
net.minecraft.src.PotionEffect
public class PotionEffect
- extends Object
PotionEffect
public PotionEffect(int par1,
int par2,
int par3)
PotionEffect
public PotionEffect(PotionEffect par1PotionEffect)
combine
public void combine(PotionEffect par1PotionEffect)
- merges the input PotionEffect into this one if this.amplifier <= tomerge.amplifier. The duration in the supplied
potion effect is assumed to be greater.
getPotionID
public int getPotionID()
- Retrieve the ID of the potion this effect matches.
getDuration
public int getDuration()
getAmplifier
public int getAmplifier()
onUpdate
public boolean onUpdate(EntityLiving par1EntityLiving)
performEffect
public void performEffect(EntityLiving par1EntityLiving)
getEffectName
public String getEffectName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object par1Obj)
- Overrides:
equals
in class Object