public enum TreeSpecies extends java.lang.Enum<TreeSpecies>
枚举常量和说明 |
---|
ACACIA
代表金合欢树.
|
BIRCH
代表桦树.
|
DARK_OAK
代表深色橡木树.
|
GENERIC
代表普通树种(橡树).
|
JUNGLE
代表丛林树.
|
REDWOOD
代表叶子颜色较暗的树.
|
限定符和类型 | 方法和说明 |
---|---|
static TreeSpecies |
getByData(byte data)
已过时。
不安全的参数
|
byte |
getData()
已过时。
不安全的参数
|
static TreeSpecies |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TreeSpecies[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TreeSpecies GENERIC
public static final TreeSpecies REDWOOD
public static final TreeSpecies BIRCH
public static final TreeSpecies JUNGLE
public static final TreeSpecies ACACIA
public static final TreeSpecies DARK_OAK
public static TreeSpecies[] values()
for (TreeSpecies c : TreeSpecies.values()) System.out.println(c);
public static TreeSpecies valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值@Deprecated public byte getData()
原文:Gets the associated data value representing this species
@Deprecated public static TreeSpecies getByData(byte data)
原文:Gets the TreeSpecies with the given data value
data
- 要获取的数据值TreeSpecies
所代表的值,如果不存在则为null