Package net.minecraft.src
Class PotionEffect
java.lang.Object
net.minecraft.src.PotionEffect
-
Constructor Summary
ConstructorsConstructorDescriptionPotionEffect(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
Modifier and TypeMethodDescriptionvoidcombine(PotionEffect par1PotionEffect) merges the input PotionEffect into this one ifthis.amplifier <= tomerge.amplifier.booleanintintbooleanGets whether this potion effect originated from a beaconbooleanintRetrieve the ID of the potion this effect matches.inthashCode()booleanonUpdate(EntityLivingBase par1EntityLivingBase) voidperformEffect(EntityLivingBase par1EntityLivingBase) static PotionEffectreadCustomPotionEffectFromNBT(NBTTagCompound par0NBTTagCompound) Read a custom potion effect from a potion item's NBT data.voidsetPotionDurationMax(boolean par1) Toggle the isPotionDurationMax field.voidsetSplashPotion(boolean par1) Set whether this potion is a splash potion.toString()writeCustomPotionEffectToNBT(NBTTagCompound par1NBTTagCompound) Write a custom potion effect to a potion item's NBT data.
-
Constructor Details
-
PotionEffect
public PotionEffect(int par1, int par2) -
PotionEffect
public PotionEffect(int par1, int par2, int par3) -
PotionEffect
public PotionEffect(int par1, int par2, int par3, boolean par4) -
PotionEffect
-
-
Method Details
-
combine
merges the input PotionEffect into this one ifthis.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() -
setSplashPotion
public void setSplashPotion(boolean par1) Set whether this potion is a splash potion. -
getIsAmbient
public boolean getIsAmbient()Gets whether this potion effect originated from a beacon -
onUpdate
-
performEffect
-
getEffectName
-
hashCode
public int hashCode() -
toString
-
equals
-
writeCustomPotionEffectToNBT
Write a custom potion effect to a potion item's NBT data. -
readCustomPotionEffectFromNBT
Read a custom potion effect from a potion item's NBT data. -
setPotionDurationMax
public void setPotionDurationMax(boolean par1) Toggle the isPotionDurationMax field. -
getIsPotionDurationMax
public boolean getIsPotionDurationMax()
-