YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.potion.PotionEffect Class Reference

Public Member Functions

 PotionEffect (int par1, int par2)
 
 PotionEffect (int par1, int par2, int par3)
 
 PotionEffect (int par1, int par2, int par3, boolean par4)
 
 PotionEffect (PotionEffect par1PotionEffect)
 
void combine (PotionEffect par1PotionEffect)
 
int getPotionID ()
 
int getDuration ()
 
int getAmplifier ()
 
List< ItemStackgetCurativeItems ()
 
boolean isCurativeItem (ItemStack stack)
 
void setCurativeItems (List< ItemStack > curativeItems)
 
void addCurativeItem (ItemStack stack)
 
boolean isSplashPotionEffect ()
 
void setSplashPotion (boolean par1)
 
boolean getIsAmbient ()
 
boolean onUpdate (EntityLiving par1EntityLiving)
 
void performEffect (EntityLiving par1EntityLiving)
 
String getEffectName ()
 
int hashCode ()
 
String toString ()
 
boolean equals (Object par1Obj)
 
NBTTagCompound writeCustomPotionEffectToNBT (NBTTagCompound par1NBTTagCompound)
 
void setPotionDurationMax (boolean par1)
 
boolean getIsPotionDurationMax ()
 

Static Public Member Functions

static PotionEffect readCustomPotionEffectFromNBT (NBTTagCompound par0NBTTagCompound)
 

Public Attributes

int duration
 

Constructor & Destructor Documentation

net.minecraft.potion.PotionEffect.PotionEffect ( int  par1,
int  par2 
)
net.minecraft.potion.PotionEffect.PotionEffect ( int  par1,
int  par2,
int  par3 
)
net.minecraft.potion.PotionEffect.PotionEffect ( int  par1,
int  par2,
int  par3,
boolean  par4 
)
net.minecraft.potion.PotionEffect.PotionEffect ( PotionEffect  par1PotionEffect)

Member Function Documentation

void net.minecraft.potion.PotionEffect.addCurativeItem ( ItemStack  stack)
void net.minecraft.potion.PotionEffect.combine ( PotionEffect  par1PotionEffect)

merges the input PotionEffect into this one if this.amplifier <= tomerge.amplifier. The duration in the supplied potion effect is assumed to be greater.

boolean net.minecraft.potion.PotionEffect.equals ( Object  par1Obj)
int net.minecraft.potion.PotionEffect.getAmplifier ( )
List<ItemStack> net.minecraft.potion.PotionEffect.getCurativeItems ( )
int net.minecraft.potion.PotionEffect.getDuration ( )
String net.minecraft.potion.PotionEffect.getEffectName ( )
boolean net.minecraft.potion.PotionEffect.getIsAmbient ( )

Gets whether this potion effect originated from a beacon

boolean net.minecraft.potion.PotionEffect.getIsPotionDurationMax ( )
int net.minecraft.potion.PotionEffect.getPotionID ( )

Retrieve the ID of the potion this effect matches.

int net.minecraft.potion.PotionEffect.hashCode ( )
boolean net.minecraft.potion.PotionEffect.isCurativeItem ( ItemStack  stack)
boolean net.minecraft.potion.PotionEffect.isSplashPotionEffect ( )
boolean net.minecraft.potion.PotionEffect.onUpdate ( EntityLiving  par1EntityLiving)
void net.minecraft.potion.PotionEffect.performEffect ( EntityLiving  par1EntityLiving)
static PotionEffect net.minecraft.potion.PotionEffect.readCustomPotionEffectFromNBT ( NBTTagCompound  par0NBTTagCompound)
static

Read a custom potion effect from a potion item's NBT data.

void net.minecraft.potion.PotionEffect.setCurativeItems ( List< ItemStack curativeItems)
void net.minecraft.potion.PotionEffect.setPotionDurationMax ( boolean  par1)

Toggle the isPotionDurationMax field.

void net.minecraft.potion.PotionEffect.setSplashPotion ( boolean  par1)

Set whether this potion is a splash potion.

String net.minecraft.potion.PotionEffect.toString ( )
NBTTagCompound net.minecraft.potion.PotionEffect.writeCustomPotionEffectToNBT ( NBTTagCompound  par1NBTTagCompound)

Write a custom potion effect to a potion item's NBT data.

Member Data Documentation

int net.minecraft.potion.PotionEffect.duration

The duration of the potion effect


The documentation for this class was generated from the following file: