Enum Class JavaConsumable.Animation
java.lang.Object
java.lang.Enum<JavaConsumable.Animation>
org.geysermc.geyser.api.item.custom.v2.component.java.JavaConsumable.Animation
- All Implemented Interfaces:
Serializable,Comparable<JavaConsumable.Animation>,Constable
- Enclosing interface:
- JavaConsumable
Not all animations work perfectly on bedrock. Bedrock behavior is noted per animation. The
toot_horn animation does not exist on bedrock, and is therefore not listed here.
Bedrock behavior is accurate as of version 1.21.94.
- Since:
- 2.9.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDoes nothing in 1st person, drinking in 3rd person.Does nothing in 1st person, drinking in 3rd person.Brush in 1st and 3rd person.Does nothing in 1st person, drinking in 3rd person.Appears to look correctly (same as eating, but without consume particles).Appears to look correctly.Does nothing in 1st person, appears as drinking in 3rd person.Does nothing in 1st person, but looks like spear in 3rd person.Does nothing in 1st person, but looks like spyglass in 3rd person. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaConsumable.AnimationReturns the enum constant of this class with the specified name.static JavaConsumable.Animation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Does nothing in 1st person, appears as drinking in 3rd person.- Since:
- 2.9.3
-
EAT
Appears to look correctly.- Since:
- 2.9.3
-
DRINK
Appears to look correctly (same as eating, but without consume particles).- Since:
- 2.9.3
-
BLOCK
Does nothing in 1st person, drinking in 3rd person.- Since:
- 2.9.3
-
BOW
Does nothing in 1st person, drinking in 3rd person.- Since:
- 2.9.3
-
SPEAR
Does nothing in 1st person, but looks like spear in 3rd person.- Since:
- 2.9.3
-
CROSSBOW
Does nothing in 1st person, drinking in 3rd person.- Since:
- 2.9.3
-
SPYGLASS
Does nothing in 1st person, but looks like spyglass in 3rd person.- Since:
- 2.9.3
-
BRUSH
Brush in 1st and 3rd person. Will look weird when not displayed handheld.- Since:
- 2.9.3
-
-
Method Details
-
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 nameNullPointerException- if the argument is null
-