public class PotionEffect extends java.lang.Object implements java.lang.Comparable<PotionEffect>
Constructor and Description |
---|
PotionEffect(Potion potionIn) |
PotionEffect(PotionEffect other) |
PotionEffect(Potion potionIn,
int durationIn) |
PotionEffect(Potion potionIn,
int durationIn,
int amplifierIn) |
PotionEffect(Potion potionIn,
int durationIn,
int amplifierIn,
boolean ambientIn,
boolean showParticlesIn) |
PotionEffect(Potion p_i48980_1_,
int p_i48980_2_,
int p_i48980_3_,
boolean p_i48980_4_,
boolean p_i48980_5_,
boolean p_i48980_6_) |
Modifier and Type | Method and Description |
---|---|
void |
addCurativeItem(ItemStack stack)
Adds the given stack to the list of curative items for this PotionEffect
|
int |
compareTo(PotionEffect p_compareTo_1_) |
boolean |
doesShowParticles() |
boolean |
equals(java.lang.Object p_equals_1_) |
boolean |
func_199308_a(PotionEffect p_199308_1_) |
int |
getAmplifier() |
java.util.List<ItemStack> |
getCurativeItems()
Returns a list of curative items for the potion effect
By default, this list is initialized using
Potion.getCurativeItems() |
int |
getDuration() |
java.lang.String |
getEffectName() |
boolean |
getIsPotionDurationMax() |
Potion |
getPotion() |
int |
hashCode() |
boolean |
isAmbient() |
boolean |
isCurativeItem(ItemStack stack)
Checks the given ItemStack to see if it is in the list of curative items for the potion effect
|
boolean |
isShowIcon() |
void |
performEffect(EntityLivingBase entityIn) |
static PotionEffect |
read(NBTTagCompound nbt) |
void |
setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the list of curative items for this potion effect, overwriting any already present
|
void |
setPotionDurationMax(boolean maxDuration) |
boolean |
tick(EntityLivingBase entityIn) |
java.lang.String |
toString() |
NBTTagCompound |
write(NBTTagCompound nbt) |
public PotionEffect(Potion potionIn)
public PotionEffect(Potion potionIn, int durationIn)
public PotionEffect(Potion potionIn, int durationIn, int amplifierIn)
public PotionEffect(Potion potionIn, int durationIn, int amplifierIn, boolean ambientIn, boolean showParticlesIn)
public PotionEffect(Potion p_i48980_1_, int p_i48980_2_, int p_i48980_3_, boolean p_i48980_4_, boolean p_i48980_5_, boolean p_i48980_6_)
public PotionEffect(PotionEffect other)
public boolean func_199308_a(PotionEffect p_199308_1_)
public Potion getPotion()
public int getDuration()
public int getAmplifier()
public boolean isAmbient()
public boolean doesShowParticles()
public boolean isShowIcon()
public boolean tick(EntityLivingBase entityIn)
public void performEffect(EntityLivingBase entityIn)
public java.lang.String getEffectName()
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 int hashCode()
hashCode
in class java.lang.Object
public NBTTagCompound write(NBTTagCompound nbt)
public static PotionEffect read(NBTTagCompound nbt)
public void setPotionDurationMax(boolean maxDuration)
public boolean getIsPotionDurationMax()
public int compareTo(PotionEffect p_compareTo_1_)
compareTo
in interface java.lang.Comparable<PotionEffect>
public java.util.List<ItemStack> getCurativeItems()
Potion.getCurativeItems()
public boolean isCurativeItem(ItemStack stack)
stack
- The ItemStack being checked against the list of curative items for this PotionEffectpublic 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