public class Potion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Potion |
absorption |
static Potion |
blindness |
static Potion |
confusion |
static Potion |
damageBoost |
static Potion |
digSlowdown |
static Potion |
digSpeed |
static Potion |
field_180143_D |
static Potion |
field_180144_E |
static Potion |
field_180145_F |
static Potion |
field_180146_G |
static Potion |
field_180147_A |
static Potion |
field_180148_B |
static Potion |
field_180149_C |
static Potion |
field_180151_b |
static Potion |
field_180153_z |
static Potion |
fireResistance |
static Potion |
harm |
static Potion |
heal |
static Potion |
healthBoost |
static Potion |
hunger |
int |
id |
static Potion |
invisibility |
static Potion |
jump |
static Potion |
moveSlowdown |
static Potion |
moveSpeed |
static Potion |
nightVision |
static Potion |
poison |
static Potion[] |
potionTypes |
static Potion |
regeneration |
static Potion |
resistance |
static Potion |
saturation |
static Potion |
waterBreathing |
static Potion |
weakness |
static Potion |
wither |
Modifier | Constructor and Description |
---|---|
protected |
Potion(int potionID,
ResourceLocation location,
boolean badEffect,
int potionColor) |
Modifier and Type | Method and Description |
---|---|
void |
affectEntity(Entity p_180793_1_,
Entity p_180793_2_,
EntityLivingBase p_180793_3_,
int p_180793_4_,
double p_180793_5_) |
void |
applyAttributesModifiersToEntity(EntityLivingBase p_111185_1_,
BaseAttributeMap p_111185_2_,
int p_111185_3_) |
double |
getAttributeModifierAmount(int p_111183_1_,
AttributeModifier p_111183_2_) |
java.util.Map |
getAttributeModifierMap() |
static java.lang.String |
getDurationString(PotionEffect p_76389_0_) |
double |
getEffectiveness() |
int |
getId() |
int |
getLiquidColor() |
java.lang.String |
getName() |
static Potion |
getPotionFromResourceLocation(java.lang.String p_180142_0_) |
static java.lang.String[] |
getPotionMapAsArray() |
int |
getStatusIconIndex() |
boolean |
hasStatusIcon() |
boolean |
isBadEffect() |
boolean |
isInstant() |
boolean |
isReady(int p_76397_1_,
int p_76397_2_) |
boolean |
isUsable() |
void |
performEffect(EntityLivingBase p_76394_1_,
int p_76394_2_) |
Potion |
registerPotionAttributeModifier(IAttribute p_111184_1_,
java.lang.String p_111184_2_,
double p_111184_3_,
int p_111184_5_) |
void |
removeAttributesModifiersFromEntity(EntityLivingBase p_111187_1_,
BaseAttributeMap p_111187_2_,
int p_111187_3_) |
void |
renderInventoryEffect(int x,
int y,
PotionEffect effect,
Minecraft mc)
Called to draw the this Potion onto the player's inventory when it's active.
|
protected Potion |
setEffectiveness(double p_76404_1_) |
protected Potion |
setIconIndex(int p_76399_1_,
int p_76399_2_) |
Potion |
setPotionName(java.lang.String p_76390_1_) |
boolean |
shouldRenderInvText(PotionEffect effect)
If the standard PotionEffect text (name and duration) should be drawn when this potion is active.
|
public static final Potion[] potionTypes
public static final Potion field_180151_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 healthBoost
public static final Potion absorption
public static final Potion saturation
public static final Potion field_180153_z
public static final Potion field_180147_A
public static final Potion field_180148_B
public static final Potion field_180149_C
public static final Potion field_180143_D
public static final Potion field_180144_E
public static final Potion field_180145_F
public static final Potion field_180146_G
public final int id
protected Potion(int potionID, ResourceLocation location, boolean badEffect, int potionColor)
public static Potion getPotionFromResourceLocation(java.lang.String p_180142_0_)
public static java.lang.String[] getPotionMapAsArray()
protected Potion setIconIndex(int p_76399_1_, int p_76399_2_)
public int getId()
public void performEffect(EntityLivingBase p_76394_1_, int p_76394_2_)
public void affectEntity(Entity p_180793_1_, Entity p_180793_2_, EntityLivingBase p_180793_3_, int p_180793_4_, double p_180793_5_)
public boolean isInstant()
public boolean isReady(int p_76397_1_, int p_76397_2_)
public Potion setPotionName(java.lang.String p_76390_1_)
public java.lang.String getName()
protected Potion setEffectiveness(double p_76404_1_)
public boolean hasStatusIcon()
public int getStatusIconIndex()
public boolean isBadEffect()
public static java.lang.String getDurationString(PotionEffect p_76389_0_)
public double getEffectiveness()
public boolean isUsable()
public int getLiquidColor()
public Potion registerPotionAttributeModifier(IAttribute p_111184_1_, java.lang.String p_111184_2_, double p_111184_3_, int p_111184_5_)
public void removeAttributesModifiersFromEntity(EntityLivingBase p_111187_1_, BaseAttributeMap p_111187_2_, int p_111187_3_)
public java.util.Map getAttributeModifierMap()
public void applyAttributesModifiersToEntity(EntityLivingBase p_111185_1_, BaseAttributeMap p_111185_2_, int p_111185_3_)
public double getAttributeModifierAmount(int p_111183_1_, AttributeModifier p_111183_2_)
public boolean shouldRenderInvText(PotionEffect effect)
effect
- the active PotionEffectpublic void renderInventoryEffect(int x, int y, PotionEffect effect, Minecraft mc)
x
- the x coordinatey
- the y coordinateeffect
- the active PotionEffectmc
- the Minecraft instance, for convenience