public class PotionEffect
extends java.lang.Object
Constructor and Description |
---|
PotionEffect(int par1,
int par2) |
PotionEffect(int par1,
int par2,
int par3) |
PotionEffect(int par1,
int par2,
int par3,
boolean par4) |
PotionEffect(PotionEffect par1PotionEffect) |
Modifier and Type | Method and Description |
---|---|
void |
addCurativeItem(ItemStack stack)
Adds the given stack to list of curative items for the potion effect
|
void |
combine(PotionEffect par1PotionEffect) |
boolean |
equals(java.lang.Object par1Obj) |
int |
getAmplifier() |
java.util.List<ItemStack> |
getCurativeItems()
Returns a list of curative items for the potion effect
|
int |
getDuration() |
java.lang.String |
getEffectName() |
boolean |
getIsAmbient() |
boolean |
getIsPotionDurationMax() |
int |
getPotionID() |
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(EntityLivingBase par1EntityLivingBase) |
void |
performEffect(EntityLivingBase par1EntityLivingBase) |
static PotionEffect |
readCustomPotionEffectFromNBT(NBTTagCompound par0NBTTagCompound) |
void |
setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the array of curative items for the potion effect
|
void |
setPotionDurationMax(boolean par1) |
void |
setSplashPotion(boolean par1) |
java.lang.String |
toString() |
NBTTagCompound |
writeCustomPotionEffectToNBT(NBTTagCompound par1NBTTagCompound) |
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)
public void combine(PotionEffect par1PotionEffect)
public int getPotionID()
public int getDuration()
public int getAmplifier()
public void setSplashPotion(boolean par1)
public boolean getIsAmbient()
public boolean onUpdate(EntityLivingBase par1EntityLivingBase)
public void performEffect(EntityLivingBase par1EntityLivingBase)
public java.lang.String getEffectName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object par1Obj)
equals
in class java.lang.Object
public NBTTagCompound writeCustomPotionEffectToNBT(NBTTagCompound par1NBTTagCompound)
public static PotionEffect readCustomPotionEffectFromNBT(NBTTagCompound par0NBTTagCompound)
public void setPotionDurationMax(boolean par1)
public boolean getIsPotionDurationMax()
public java.util.List<ItemStack> getCurativeItems()
public boolean isCurativeItem(ItemStack stack)
stack
- The ItemStack being checked against the list of curative items for the potion effectpublic void setCurativeItems(java.util.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 list