|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.PotionEffect
public class PotionEffect
Constructor Summary | |
---|---|
PotionEffect(int par1,
int par2)
|
|
PotionEffect(int par1,
int par2,
int par3)
|
|
PotionEffect(int par1,
int par2,
int par3,
boolean par4)
|
|
PotionEffect(PotionEffect par1PotionEffect)
|
Method Summary | |
---|---|
void |
addCurativeItem(ItemStack stack)
Adds the given stack to list of curative items for the potion effect |
void |
combine(PotionEffect par1PotionEffect)
merges the input PotionEffect into this one if this.amplifier <= tomerge.amplifier. |
boolean |
equals(Object par1Obj)
|
NBTTagCompound |
func_82719_a(NBTTagCompound par1NBTTagCompound)
|
boolean |
func_82720_e()
|
void |
func_82721_a(boolean par1)
|
static PotionEffect |
func_82722_b(NBTTagCompound par0NBTTagCompound)
|
int |
getAmplifier()
|
List<ItemStack> |
getCurativeItems()
Returns a list of curative items for the potion effect |
int |
getDuration()
|
String |
getEffectName()
|
int |
getPotionID()
Retrieve the ID of the potion this effect matches. |
int |
hashCode()
|
boolean |
isCurativeItem(ItemStack stack)
Checks the given ItemStack to see if it is in the list of curative items for the potion effect |
boolean |
onUpdate(EntityLiving par1EntityLiving)
|
void |
performEffect(EntityLiving par1EntityLiving)
|
void |
setCurativeItems(List<ItemStack> curativeItems)
Sets the array of curative items for the potion effect |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PotionEffect(int par1, int par2)
public PotionEffect(int par1, int par2, int par3)
public PotionEffect(int par1, int par2, int par3, boolean par4)
public PotionEffect(PotionEffect par1PotionEffect)
Method Detail |
---|
public void combine(PotionEffect par1PotionEffect)
public int getPotionID()
public int getDuration()
public int getAmplifier()
public List<ItemStack> getCurativeItems()
public boolean isCurativeItem(ItemStack stack)
stack
- The ItemStack being checked against the list of curative items for the potion effect
public void setCurativeItems(List<ItemStack> curativeItems)
curativeItems
- The list of ItemStacks being set to the potion effectpublic void addCurativeItem(ItemStack stack)
stack
- The ItemStack being added to the curative item listpublic void func_82721_a(boolean par1)
public boolean func_82720_e()
public boolean onUpdate(EntityLiving par1EntityLiving)
public void performEffect(EntityLiving par1EntityLiving)
public String getEffectName()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object par1Obj)
equals
in class Object
public NBTTagCompound func_82719_a(NBTTagCompound par1NBTTagCompound)
public static PotionEffect func_82722_b(NBTTagCompound par0NBTTagCompound)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |