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

public static enum JavaConsumable.Animation extends Enum<JavaConsumable.Animation>
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
  • Enum Constant Details

    • NONE

      public static final JavaConsumable.Animation NONE
      Does nothing in 1st person, appears as drinking in 3rd person.
      Since:
      2.9.3
    • EAT

      public static final JavaConsumable.Animation EAT
      Appears to look correctly.
      Since:
      2.9.3
    • DRINK

      public static final JavaConsumable.Animation DRINK
      Appears to look correctly (same as eating, but without consume particles).
      Since:
      2.9.3
    • BLOCK

      public static final JavaConsumable.Animation BLOCK
      Does nothing in 1st person, drinking in 3rd person.
      Since:
      2.9.3
    • BOW

      public static final JavaConsumable.Animation BOW
      Does nothing in 1st person, drinking in 3rd person.
      Since:
      2.9.3
    • SPEAR

      public static final JavaConsumable.Animation SPEAR
      Does nothing in 1st person, but looks like spear in 3rd person.
      Since:
      2.9.3
    • CROSSBOW

      public static final JavaConsumable.Animation CROSSBOW
      Does nothing in 1st person, drinking in 3rd person.
      Since:
      2.9.3
    • SPYGLASS

      public static final JavaConsumable.Animation SPYGLASS
      Does nothing in 1st person, but looks like spyglass in 3rd person.
      Since:
      2.9.3
    • BRUSH

      public static final JavaConsumable.Animation BRUSH
      Brush in 1st and 3rd person. Will look weird when not displayed handheld.
      Since:
      2.9.3
  • Method Details

    • values

      public static JavaConsumable.Animation[] 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

      public static JavaConsumable.Animation valueOf(String name)
      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