public class Potion extends Object
Modifier and Type | Field and Description |
---|---|
static Potion |
blindness
The blindness Potion object.
|
static Potion |
confusion |
static Potion |
damageBoost |
static Potion |
digSlowdown |
static Potion |
digSpeed |
static Potion |
field_76405_D |
static Potion |
field_76406_E |
static Potion |
field_76407_F |
static Potion |
field_76408_G |
static Potion |
field_76409_A |
static Potion |
field_76410_B |
static Potion |
field_76411_C |
static Potion |
field_76423_b |
static Potion |
field_76434_w |
static Potion |
field_76442_z |
static Potion |
field_76443_y |
static Potion |
field_76444_x |
static Potion |
fireResistance
The fire resistance Potion object.
|
static Potion |
harm |
static Potion |
heal |
static Potion |
hunger
The hunger Potion object.
|
int |
id
The Id of a Potion object.
|
static Potion |
invisibility
The invisibility Potion object.
|
static Potion |
jump |
static Potion |
moveSlowdown |
static Potion |
moveSpeed |
static Potion |
nightVision
The night vision Potion object.
|
static Potion |
poison
The poison Potion object.
|
static Potion[] |
potionTypes
The array of potion types.
|
static Potion |
regeneration
The regeneration Potion object.
|
static Potion |
resistance |
static Potion |
waterBreathing
The water breathing Potion object.
|
static Potion |
weakness
The weakness Potion object.
|
static Potion |
wither
The wither Potion object.
|
Modifier and Type | Method and Description |
---|---|
void |
affectEntity(EntityLivingBase par1EntityLivingBase,
EntityLivingBase par2EntityLivingBase,
int par3,
double par4)
Hits the provided entity with this potion's instant effect.
|
void |
applyAttributesModifiersToEntity(EntityLivingBase par1EntityLivingBase,
BaseAttributeMap par2BaseAttributeMap,
int par3) |
double |
func_111183_a(int par1,
AttributeModifier par2AttributeModifier) |
Potion |
func_111184_a(Attribute par1Attribute,
String par2Str,
double par3,
int par5) |
Map |
func_111186_k() |
static String |
getDurationString(PotionEffect par0PotionEffect) |
double |
getEffectiveness() |
int |
getId()
returns the ID of the potion
|
int |
getLiquidColor()
Returns the color of the potion liquid.
|
String |
getName()
returns the name of the potion
|
int |
getStatusIconIndex() |
boolean |
hasStatusIcon() |
boolean |
isBadEffect() |
boolean |
isInstant()
Returns true if the potion has an instant effect instead of a continuous one (eg Harming)
|
boolean |
isReady(int par1,
int par2)
checks if Potion effect is ready to be applied this tick.
|
boolean |
isUsable() |
void |
performEffect(EntityLivingBase par1EntityLivingBase,
int par2) |
void |
removeAttributesModifiersFromEntity(EntityLivingBase par1EntityLivingBase,
BaseAttributeMap par2BaseAttributeMap,
int par3) |
Potion |
setIconIndex(int par1,
int par2)
Sets the index for the icon displayed in the player's inventory when the status is active.
|
Potion |
setPotionName(String par1Str)
Set the potion name.
|
public static final Potion[] potionTypes
public static final Potion field_76423_b
public static final Potion moveSpeed
public static final Potion moveSlowdown
public static final Potion digSpeed
public static final Potion digSlowdown
public static final Potion damageBoost
public static final Potion heal
public static final Potion harm
public static final Potion jump
public static final Potion confusion
public static final Potion regeneration
public static final Potion resistance
public static final Potion fireResistance
public static final Potion waterBreathing
public static final Potion invisibility
public static final Potion blindness
public static final Potion nightVision
public static final Potion hunger
public static final Potion weakness
public static final Potion poison
public static final Potion wither
public static final Potion field_76434_w
public static final Potion field_76444_x
public static final Potion field_76443_y
public static final Potion field_76442_z
public static final Potion field_76409_A
public static final Potion field_76410_B
public static final Potion field_76411_C
public static final Potion field_76405_D
public static final Potion field_76406_E
public static final Potion field_76407_F
public static final Potion field_76408_G
public final int id
public Potion setIconIndex(int par1, int par2)
public int getId()
public void performEffect(EntityLivingBase par1EntityLivingBase, int par2)
public void affectEntity(EntityLivingBase par1EntityLivingBase, EntityLivingBase par2EntityLivingBase, int par3, double par4)
public boolean isInstant()
public boolean isReady(int par1, int par2)
public String getName()
public boolean hasStatusIcon()
public int getStatusIconIndex()
public boolean isBadEffect()
public static String getDurationString(PotionEffect par0PotionEffect)
public double getEffectiveness()
public boolean isUsable()
public int getLiquidColor()
public Potion func_111184_a(Attribute par1Attribute, String par2Str, double par3, int par5)
public void removeAttributesModifiersFromEntity(EntityLivingBase par1EntityLivingBase, BaseAttributeMap par2BaseAttributeMap, int par3)
public Map func_111186_k()
public void applyAttributesModifiersToEntity(EntityLivingBase par1EntityLivingBase, BaseAttributeMap par2BaseAttributeMap, int par3)
public double func_111183_a(int par1, AttributeModifier par2AttributeModifier)