Package net.minecraft.src
Class Potion
- java.lang.Object
-
- net.minecraft.src.Potion
-
- Direct Known Subclasses:
PotionHealth
public class Potion extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Potion
blindness
static Potion
confusion
static Potion
damageBoost
static Potion
digSlowdown
static Potion
digSpeed
static Potion
field_35663_D
static Potion
field_35664_E
static Potion
field_35665_F
static Potion
field_35666_G
static Potion
field_35667_A
static Potion
field_35668_B
static Potion
field_35669_C
static Potion
field_35676_b
static Potion
field_35687_w
static Potion
field_35688_v
static Potion
field_35695_z
static Potion
field_35696_y
static Potion
field_35697_x
static Potion
fireResistance
static Potion
harm
static Potion
heal
static Potion
hunger
int
id
static Potion
invisibility
static Potion
jump
static Potion
moveSlowdown
static Potion
moveSpeed
static Potion
nightVision
static Potion
poison
static java.util.Map<java.lang.String,Potion>
potionNames
static Potion[]
potionTypes
static Potion
regeneration
static Potion
resistance
static Potion
waterBreathing
static Potion
weakness
-
Constructor Summary
Constructors Modifier Constructor Description protected
Potion(int var1, boolean var2, int var3)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
affectEntity(LivingEntity var1, LivingEntity var2, int var3, double var4)
static @Client java.lang.String
getDurationString(PotionEffect var0)
double
getEffectiveness()
int
getId()
int
getLiquidColor()
java.lang.String
getName()
java.lang.String
getShortName()
@net.minecraft.modding.api.Side.Client int
getStatusIconIndex()
java.lang.String
getTranslatedName()
@net.minecraft.modding.api.Side.Client boolean
hasStatusIcon()
@net.minecraft.modding.api.Side.Client boolean
isBadEffect()
boolean
isInstant()
boolean
isReady(int var1, int var2)
boolean
isUsable()
void
performEffect(LivingEntity var1, int var2)
protected Potion
setEffectiveness(double var1)
protected Potion
setIconIndex(int var1, int var2)
Potion
setPotionName(java.lang.String var1)
Potion
setPotionUnusable()
-
-
-
Field Detail
-
potionTypes
public static final Potion[] potionTypes
-
potionNames
public static final java.util.Map<java.lang.String,Potion> potionNames
-
field_35676_b
public static final Potion field_35676_b
-
moveSpeed
public static final Potion moveSpeed
-
moveSlowdown
public static final Potion moveSlowdown
-
digSpeed
public static final Potion digSpeed
-
digSlowdown
public static final Potion digSlowdown
-
damageBoost
public static final Potion damageBoost
-
heal
public static final Potion heal
-
harm
public static final Potion harm
-
jump
public static final Potion jump
-
confusion
public static final Potion confusion
-
regeneration
public static final Potion regeneration
-
resistance
public static final Potion resistance
-
fireResistance
public static final Potion fireResistance
-
waterBreathing
public static final Potion waterBreathing
-
invisibility
public static final Potion invisibility
-
blindness
public static final Potion blindness
-
nightVision
public static final Potion nightVision
-
hunger
public static final Potion hunger
-
weakness
public static final Potion weakness
-
poison
public static final Potion poison
-
field_35688_v
public static final Potion field_35688_v
-
field_35687_w
public static final Potion field_35687_w
-
field_35697_x
public static final Potion field_35697_x
-
field_35696_y
public static final Potion field_35696_y
-
field_35695_z
public static final Potion field_35695_z
-
field_35667_A
public static final Potion field_35667_A
-
field_35668_B
public static final Potion field_35668_B
-
field_35669_C
public static final Potion field_35669_C
-
field_35663_D
public static final Potion field_35663_D
-
field_35664_E
public static final Potion field_35664_E
-
field_35665_F
public static final Potion field_35665_F
-
field_35666_G
public static final Potion field_35666_G
-
id
public final int id
-
-
Method Detail
-
setIconIndex
protected Potion setIconIndex(int var1, int var2)
-
getId
public int getId()
-
performEffect
public void performEffect(LivingEntity var1, int var2)
-
affectEntity
public void affectEntity(LivingEntity var1, LivingEntity var2, int var3, double var4)
-
isInstant
public boolean isInstant()
-
isReady
public boolean isReady(int var1, int var2)
-
setPotionName
public Potion setPotionName(java.lang.String var1)
-
getShortName
public java.lang.String getShortName()
-
getName
public java.lang.String getName()
-
getTranslatedName
public java.lang.String getTranslatedName()
-
hasStatusIcon
@Client public @net.minecraft.modding.api.Side.Client boolean hasStatusIcon()
-
getStatusIconIndex
@Client public @net.minecraft.modding.api.Side.Client int getStatusIconIndex()
-
isBadEffect
@Client public @net.minecraft.modding.api.Side.Client boolean isBadEffect()
-
getDurationString
@Client public static @Client java.lang.String getDurationString(PotionEffect var0)
-
setEffectiveness
protected Potion setEffectiveness(double var1)
-
getEffectiveness
public double getEffectiveness()
-
setPotionUnusable
public Potion setPotionUnusable()
-
isUsable
public boolean isUsable()
-
getLiquidColor
public int getLiquidColor()
-
-