JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
short
int
int
org.geysermc.mcprotocollib.protocol.data.game.item.component.PotionContents
static byte
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
WATER
public static final Potion WATER
MUNDANE
public static final Potion MUNDANE
THICK
public static final Potion THICK
AWKWARD
public static final Potion AWKWARD
NIGHT_VISION
public static final Potion NIGHT_VISION
LONG_NIGHT_VISION
public static final Potion LONG_NIGHT_VISION
INVISIBILITY
public static final Potion INVISIBILITY
LONG_INVISIBILITY
public static final Potion LONG_INVISIBILITY
LEAPING
public static final Potion LEAPING
LONG_LEAPING
public static final Potion LONG_LEAPING
STRONG_LEAPING
public static final Potion STRONG_LEAPING
FIRE_RESISTANCE
public static final Potion FIRE_RESISTANCE
LONG_FIRE_RESISTANCE
public static final Potion LONG_FIRE_RESISTANCE
SWIFTNESS
public static final Potion SWIFTNESS
LONG_SWIFTNESS
public static final Potion LONG_SWIFTNESS
STRONG_SWIFTNESS
public static final Potion STRONG_SWIFTNESS
SLOWNESS
public static final Potion SLOWNESS
LONG_SLOWNESS
public static final Potion LONG_SLOWNESS
STRONG_SLOWNESS
public static final Potion STRONG_SLOWNESS
TURTLE_MASTER
public static final Potion TURTLE_MASTER
LONG_TURTLE_MASTER
public static final Potion LONG_TURTLE_MASTER
STRONG_TURTLE_MASTER
public static final Potion STRONG_TURTLE_MASTER
WATER_BREATHING
public static final Potion WATER_BREATHING
LONG_WATER_BREATHING
public static final Potion LONG_WATER_BREATHING
HEALING
public static final Potion HEALING
STRONG_HEALING
public static final Potion STRONG_HEALING
HARMING
public static final Potion HARMING
STRONG_HARMING
public static final Potion STRONG_HARMING
POISON
public static final Potion POISON
LONG_POISON
public static final Potion LONG_POISON
STRONG_POISON
public static final Potion STRONG_POISON
REGENERATION
public static final Potion REGENERATION
LONG_REGENERATION
public static final Potion LONG_REGENERATION
STRONG_REGENERATION
public static final Potion STRONG_REGENERATION
STRENGTH
public static final Potion STRENGTH
LONG_STRENGTH
public static final Potion LONG_STRENGTH
STRONG_STRENGTH
public static final Potion STRONG_STRENGTH
WEAKNESS
public static final Potion WEAKNESS
LONG_WEAKNESS
public static final Potion LONG_WEAKNESS
LUCK
public static final Potion LUCK
SLOW_FALLING
public static final Potion SLOW_FALLING
LONG_SLOW_FALLING
public static final Potion LONG_SLOW_FALLING
WIND_CHARGING
public static final Potion WIND_CHARGING
WEAVING
public static final Potion WEAVING
OOZING
public static final Potion OOZING
INFESTATION
public static final Potion INFESTATION
Field Details
VALUES
public static final Potion [] VALUES
Method Details
values
public static Potion [] values ()
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - if the argument is null
tippedArrowId
public int tippedArrowId ()
toComponent
public org.geysermc.mcprotocollib.protocol.data.game.item.component.PotionContents toComponent ()
getByJavaIdentifier
public static Potion getByJavaIdentifier (String javaIdentifier)
getByJavaId
public static @Nullable Potion getByJavaId (int javaId)
getByBedrockId
public static @Nullable Potion getByBedrockId (int bedrockId)
getByTippedArrowDamage
public static @Nullable Potion getByTippedArrowDamage (int bedrockId)
toTippedArrowId
public static byte toTippedArrowId (int javaParticleColor)
getJavaIdentifier
public String getJavaIdentifier ()
getBedrockId
public short getBedrockId ()
getJavaColor
public int getJavaColor ()