public class PotionEffect
extends java.lang.Object
Constructor and Description |
---|
PotionEffect(int p_i1574_1_,
int p_i1574_2_) |
PotionEffect(int p_i1575_1_,
int p_i1575_2_,
int p_i1575_3_) |
PotionEffect(int p_i1576_1_,
int p_i1576_2_,
int p_i1576_3_,
boolean p_i1576_4_) |
PotionEffect(PotionEffect p_i1577_1_) |
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 p_76452_1_) |
boolean |
equals(java.lang.Object p_equals_1_) |
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 p_76455_1_) |
void |
performEffect(EntityLivingBase p_76457_1_) |
static PotionEffect |
readCustomPotionEffectFromNBT(NBTTagCompound p_82722_0_) |
void |
setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the array of curative items for the potion effect
|
void |
setPotionDurationMax(boolean p_100012_1_) |
void |
setSplashPotion(boolean p_82721_1_) |
java.lang.String |
toString() |
NBTTagCompound |
writeCustomPotionEffectToNBT(NBTTagCompound p_82719_1_) |
public PotionEffect(int p_i1574_1_, int p_i1574_2_)
public PotionEffect(int p_i1575_1_, int p_i1575_2_, int p_i1575_3_)
public PotionEffect(int p_i1576_1_, int p_i1576_2_, int p_i1576_3_, boolean p_i1576_4_)
public PotionEffect(PotionEffect p_i1577_1_)
public void combine(PotionEffect p_76452_1_)
public int getPotionID()
public int getDuration()
public int getAmplifier()
public void setSplashPotion(boolean p_82721_1_)
public boolean getIsAmbient()
public boolean onUpdate(EntityLivingBase p_76455_1_)
public void performEffect(EntityLivingBase p_76457_1_)
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 p_equals_1_)
equals
in class java.lang.Object
public NBTTagCompound writeCustomPotionEffectToNBT(NBTTagCompound p_82719_1_)
public static PotionEffect readCustomPotionEffectFromNBT(NBTTagCompound p_82722_0_)
public void setPotionDurationMax(boolean p_100012_1_)
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