Enum Class UseAnim

java.lang.Object
java.lang.Enum<UseAnim>
net.minecraft.world.item.UseAnim
所有已实现的接口:
Serializable, Comparable<UseAnim>, Constable

public enum UseAnim extends Enum<UseAnim>
  • 枚举常量详细资料

    • 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
    • TOOT_HORN

      public static final UseAnim TOOT_HORN
    • BRUSH

      public static final UseAnim BRUSH
    • CUSTOM

      public static final UseAnim CUSTOM
      Items with custom arm animation should return this in `Item#getUseAnimation` to prevent vanilla from also trying to animate same item
  • 构造器详细资料

    • UseAnim

      private UseAnim()
  • 方法详细资料

    • values

      public static UseAnim[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值