枚举 Ocelot.Type

java.lang.Object
java.lang.Enum<Ocelot.Type>
org.bukkit.entity.Ocelot.Type
所有已实现的接口:
Serializable, Comparable<Ocelot.Type>, java.lang.constant.Constable
封闭接口:
Ocelot

@Deprecated public static enum Ocelot.Type extends Enum<Ocelot.Type>
已过时。
不同猫种现在属于不同的生物/Cats are now a separate entity.
代表不同的猫的种类.

译注:具体有哪些种类及特征可以查阅MineCraft Wiki.

  • 枚举常量详细资料

    • WILD_OCELOT

      public static final Ocelot.Type WILD_OCELOT
      已过时。
    • BLACK_CAT

      public static final Ocelot.Type BLACK_CAT
      已过时。
    • RED_CAT

      public static final Ocelot.Type RED_CAT
      已过时。
    • SIAMESE_CAT

      public static final Ocelot.Type SIAMESE_CAT
      已过时。
  • 方法详细资料

    • values

      public static Ocelot.Type[] values()
      已过时。
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static Ocelot.Type valueOf(String name)
      已过时。
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getId

      @Deprecated public int getId()
      已过时。
      不安全的参数
      获取这个猫的种类的id.

      原文:Gets the ID of this cat type.

      返回:
      种类id
    • getType

      @Deprecated @Nullable public static @Nullable Ocelot.Type getType(int id)
      已过时。
      不安全的参数
      用id获取猫的种类.

      原文:Gets a cat type by its ID.

      参数:
      id - 要获取这个种类的id
      返回:
      种类,如果是null的话就是没找到