YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.potion.PotionHealth Class Reference
Inheritance diagram for net.minecraft.potion.PotionHealth:
net.minecraft.potion.Potion

Public Member Functions

 PotionHealth (int par1, boolean par2, int par3)
 
boolean isInstant ()
 
boolean isReady (int par1, int par2)
 
- Public Member Functions inherited from net.minecraft.potion.Potion
Potion setIconIndex (int par1, int par2)
 
int getId ()
 
void performEffect (EntityLiving par1EntityLiving, int par2)
 
void affectEntity (EntityLiving par1EntityLiving, EntityLiving par2EntityLiving, int par3, double par4)
 
boolean isInstant ()
 
boolean isReady (int par1, int par2)
 
Potion setPotionName (String par1Str)
 
String getName ()
 
boolean hasStatusIcon ()
 
int getStatusIconIndex ()
 
boolean isBadEffect ()
 
double getEffectiveness ()
 
boolean isUsable ()
 
int getLiquidColor ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.potion.Potion
static String getDurationString (PotionEffect par0PotionEffect)
 
- Public Attributes inherited from net.minecraft.potion.Potion
final int id
 
- Static Public Attributes inherited from net.minecraft.potion.Potion
static final Potion[] potionTypes = new Potion[32]
 
static final Potion field_76423_b = null
 
static final Potion moveSpeed = (new Potion(1, false, 8171462)).setPotionName("potion.moveSpeed").setIconIndex(0, 0)
 
static final Potion moveSlowdown = (new Potion(2, true, 5926017)).setPotionName("potion.moveSlowdown").setIconIndex(1, 0)
 
static final Potion digSpeed = (new Potion(3, false, 14270531)).setPotionName("potion.digSpeed").setIconIndex(2, 0).setEffectiveness(1.5D)
 
static final Potion digSlowdown = (new Potion(4, true, 4866583)).setPotionName("potion.digSlowDown").setIconIndex(3, 0)
 
static final Potion damageBoost = (new Potion(5, false, 9643043)).setPotionName("potion.damageBoost").setIconIndex(4, 0)
 
static final Potion heal = (new PotionHealth(6, false, 16262179)).setPotionName("potion.heal")
 
static final Potion harm = (new PotionHealth(7, true, 4393481)).setPotionName("potion.harm")
 
static final Potion jump = (new Potion(8, false, 7889559)).setPotionName("potion.jump").setIconIndex(2, 1)
 
static final Potion confusion = (new Potion(9, true, 5578058)).setPotionName("potion.confusion").setIconIndex(3, 1).setEffectiveness(0.25D)
 
static final Potion regeneration = (new Potion(10, false, 13458603)).setPotionName("potion.regeneration").setIconIndex(7, 0).setEffectiveness(0.25D)
 
static final Potion resistance = (new Potion(11, false, 10044730)).setPotionName("potion.resistance").setIconIndex(6, 1)
 
static final Potion fireResistance = (new Potion(12, false, 14981690)).setPotionName("potion.fireResistance").setIconIndex(7, 1)
 
static final Potion waterBreathing = (new Potion(13, false, 3035801)).setPotionName("potion.waterBreathing").setIconIndex(0, 2)
 
static final Potion invisibility = (new Potion(14, false, 8356754)).setPotionName("potion.invisibility").setIconIndex(0, 1)
 
static final Potion blindness = (new Potion(15, true, 2039587)).setPotionName("potion.blindness").setIconIndex(5, 1).setEffectiveness(0.25D)
 
static final Potion nightVision = (new Potion(16, false, 2039713)).setPotionName("potion.nightVision").setIconIndex(4, 1)
 
static final Potion hunger = (new Potion(17, true, 5797459)).setPotionName("potion.hunger").setIconIndex(1, 1)
 
static final Potion weakness = (new Potion(18, true, 4738376)).setPotionName("potion.weakness").setIconIndex(5, 0)
 
static final Potion poison = (new Potion(19, true, 5149489)).setPotionName("potion.poison").setIconIndex(6, 0).setEffectiveness(0.25D)
 
static final Potion wither = (new Potion(20, true, 3484199)).setPotionName("potion.wither").setIconIndex(1, 2).setEffectiveness(0.25D)
 
static final Potion field_76434_w = null
 
static final Potion field_76444_x = null
 
static final Potion field_76443_y = null
 
static final Potion field_76442_z = null
 
static final Potion field_76409_A = null
 
static final Potion field_76410_B = null
 
static final Potion field_76411_C = null
 
static final Potion field_76405_D = null
 
static final Potion field_76406_E = null
 
static final Potion field_76407_F = null
 
static final Potion field_76408_G = null
 
- Protected Member Functions inherited from net.minecraft.potion.Potion
 Potion (int par1, boolean par2, int par3)
 
Potion setEffectiveness (double par1)
 

Constructor & Destructor Documentation

net.minecraft.potion.PotionHealth.PotionHealth ( int  par1,
boolean  par2,
int  par3 
)

Member Function Documentation

boolean net.minecraft.potion.PotionHealth.isInstant ( )

Returns true if the potion has an instant effect instead of a continuous one (eg Harming)

boolean net.minecraft.potion.PotionHealth.isReady ( int  par1,
int  par2 
)

checks if Potion effect is ready to be applied this tick.


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