YATS/Forge Documentation
|
Public Member Functions | |
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 () |
Static Public Member Functions | |
static String | getDurationString (PotionEffect par0PotionEffect) |
Public Attributes | |
final int | id |
Static Public Attributes | |
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 | |
Potion (int par1, boolean par2, int par3) | |
Potion | setEffectiveness (double par1) |
|
protected |
void net.minecraft.potion.Potion.affectEntity | ( | EntityLiving | par1EntityLiving, |
EntityLiving | par2EntityLiving, | ||
int | par3, | ||
double | par4 | ||
) |
Hits the provided entity with this potion's instant effect.
|
static |
double net.minecraft.potion.Potion.getEffectiveness | ( | ) |
int net.minecraft.potion.Potion.getId | ( | ) |
returns the ID of the potion
int net.minecraft.potion.Potion.getLiquidColor | ( | ) |
Returns the color of the potion liquid.
String net.minecraft.potion.Potion.getName | ( | ) |
returns the name of the potion
int net.minecraft.potion.Potion.getStatusIconIndex | ( | ) |
Returns the index for the icon to display when the potion is active.
boolean net.minecraft.potion.Potion.hasStatusIcon | ( | ) |
Returns true if the potion has a associated status icon to display in then inventory when active.
boolean net.minecraft.potion.Potion.isBadEffect | ( | ) |
This method returns true if the potion effect is bad - negative - for the entity.
boolean net.minecraft.potion.Potion.isInstant | ( | ) |
Returns true if the potion has an instant effect instead of a continuous one (eg Harming)
boolean net.minecraft.potion.Potion.isReady | ( | int | par1, |
int | par2 | ||
) |
checks if Potion effect is ready to be applied this tick.
boolean net.minecraft.potion.Potion.isUsable | ( | ) |
void net.minecraft.potion.Potion.performEffect | ( | EntityLiving | par1EntityLiving, |
int | par2 | ||
) |
|
protected |
Potion net.minecraft.potion.Potion.setIconIndex | ( | int | par1, |
int | par2 | ||
) |
Sets the index for the icon displayed in the player's inventory when the status is active.
Potion net.minecraft.potion.Potion.setPotionName | ( | String | par1Str) |
Set the potion name.
|
static |
The blindness Potion object.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The fire resistance Potion object.
|
static |
|
static |
|
static |
The hunger Potion object.
final int net.minecraft.potion.Potion.id |
The Id of a Potion object.
|
static |
The invisibility Potion object.
|
static |
|
static |
|
static |
|
static |
The night vision Potion object.
|
static |
The poison Potion object.
The array of potion types.
|
static |
The regeneration Potion object.
|
static |
|
static |
The water breathing Potion object.
|
static |
The weakness Potion object.
|
static |
The wither Potion object.