net.minecraft.src
Class PotionEffect

java.lang.Object
  extended by net.minecraft.src.PotionEffect

public class PotionEffect
extends Object


Constructor Summary
PotionEffect(int par1, int par2, int par3)
           
PotionEffect(PotionEffect par1PotionEffect)
           
 
Method Summary
 void combine(PotionEffect par1PotionEffect)
          merges the input PotionEffect into this one if this.amplifier <= tomerge.amplifier.
 boolean equals(Object par1Obj)
           
 int getAmplifier()
           
 int getDuration()
           
 String getEffectName()
           
 int getPotionID()
          Retrieve the ID of the potion this effect matches.
 int hashCode()
           
 boolean onUpdate(EntityLiving par1EntityLiving)
           
 void performEffect(EntityLiving par1EntityLiving)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PotionEffect

public PotionEffect(int par1,
                    int par2,
                    int par3)

PotionEffect

public PotionEffect(PotionEffect par1PotionEffect)
Method Detail

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