public static enum Ocelot.Type extends java.lang.Enum<Ocelot.Type>
译注:具体有哪些种类及特征可以查阅MineCraft Wiki.
枚举常量和说明 |
---|
BLACK_CAT |
RED_CAT |
SIAMESE_CAT |
WILD_OCELOT |
限定符和类型 | 方法和说明 |
---|---|
int |
getId()
已过时。
不安全的参数
|
static Ocelot.Type |
getType(int id)
已过时。
不安全的参数
|
static Ocelot.Type |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Ocelot.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Ocelot.Type WILD_OCELOT
public static final Ocelot.Type BLACK_CAT
public static final Ocelot.Type RED_CAT
public static final Ocelot.Type SIAMESE_CAT
public static Ocelot.Type[] values()
for (Ocelot.Type c : Ocelot.Type.values()) System.out.println(c);
public static Ocelot.Type valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值@Deprecated public int getId()
原文:Gets the ID of this cat type.
@Deprecated public static Ocelot.Type getType(int id)
原文:Gets a cat type by its ID.
id
- 要获取这个种类的id