public enum PotionType extends java.lang.Enum<PotionType>
限定符和类型 | 方法和说明 |
---|---|
static PotionType |
getByEffect(PotionEffectType effectType)
已过时。
Misleading
|
PotionEffectType |
getEffectType() |
int |
getMaxLevel() |
boolean |
isExtendable()
Checks if the potion type has an extended state.
|
boolean |
isInstant() |
boolean |
isUpgradeable()
Checks if the potion type has an upgraded state.
|
static PotionType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PotionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PotionType UNCRAFTABLE
public static final PotionType WATER
public static final PotionType MUNDANE
public static final PotionType THICK
public static final PotionType AWKWARD
public static final PotionType NIGHT_VISION
public static final PotionType INVISIBILITY
public static final PotionType JUMP
public static final PotionType FIRE_RESISTANCE
public static final PotionType SPEED
public static final PotionType SLOWNESS
public static final PotionType WATER_BREATHING
public static final PotionType INSTANT_HEAL
public static final PotionType INSTANT_DAMAGE
public static final PotionType POISON
public static final PotionType REGEN
public static final PotionType STRENGTH
public static final PotionType WEAKNESS
public static final PotionType LUCK
public static final PotionType TURTLE_MASTER
public static final PotionType SLOW_FALLING
public static PotionType[] values()
for (PotionType c : PotionType.values()) System.out.println(c);
public static PotionType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public PotionEffectType getEffectType()
public boolean isInstant()
public boolean isUpgradeable()
public boolean isExtendable()
public int getMaxLevel()
@Deprecated public static PotionType getByEffect(PotionEffectType effectType)
effectType
- the effect to get by