public enum PotionType extends Enum<PotionType>
Enum Constant and Description |
---|
AWKWARD |
FIRE_RESISTANCE |
INSTANT_DAMAGE |
INSTANT_HEAL |
INVISIBILITY |
JUMP |
LUCK |
MUNDANE |
NIGHT_VISION |
POISON |
REGEN |
SLOW_FALLING |
SLOWNESS |
SPEED |
STRENGTH |
THICK |
TURTLE_MASTER |
UNCRAFTABLE |
WATER |
WATER_BREATHING |
WEAKNESS |
Modifier and Type | Method and Description |
---|---|
static @Nullable PotionType |
getByEffect(@Nullable PotionEffectType effectType)
Deprecated.
Misleading
|
@Nullable 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(String name)
Returns the enum constant of this type with the specified name.
|
static PotionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public @Nullable PotionEffectType getEffectType()
public boolean isInstant()
public boolean isUpgradeable()
public boolean isExtendable()
public int getMaxLevel()
@Deprecated @Nullable public static @Nullable PotionType getByEffect(@Nullable @Nullable PotionEffectType effectType)
effectType
- the effect to get byCopyright © 2021. All rights reserved.