Enum Class UseAnim

java.lang.Object
java.lang.Enum<UseAnim>
net.minecraft.world.item.UseAnim
All Implemented Interfaces:
Serializable, Comparable<UseAnim>, Constable

public enum UseAnim extends Enum<UseAnim>
  • Enum Constant Details

    • NONE

      public static final UseAnim NONE
    • EAT

      public static final UseAnim EAT
    • DRINK

      public static final UseAnim DRINK
    • BLOCK

      public static final UseAnim BLOCK
    • BOW

      public static final UseAnim BOW
    • SPEAR

      public static final UseAnim SPEAR
    • CROSSBOW

      public static final UseAnim CROSSBOW
    • SPYGLASS

      public static final UseAnim SPYGLASS
  • Constructor Details

    • UseAnim

      private UseAnim()
  • Method Details

    • values

      public static UseAnim[] 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 UseAnim 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