枚举常量和说明 |
---|
AMPLIFIED |
CUSTOMIZED |
FLAT |
LARGE_BIOMES |
NORMAL |
VERSION_1_1 |
限定符和类型 | 方法和说明 |
---|---|
static WorldType |
getByName(java.lang.String name)
用世界种类名获取世界种类.
|
java.lang.String |
getName()
获取世界种类名称.
|
static WorldType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WorldType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WorldType NORMAL
public static final WorldType FLAT
public static final WorldType VERSION_1_1
public static final WorldType LARGE_BIOMES
public static final WorldType AMPLIFIED
public static final WorldType CUSTOMIZED
public static WorldType[] values()
for (WorldType c : WorldType.values()) System.out.println(c);
public static WorldType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.lang.String getName()
原文: Gets the name of this WorldType
public static WorldType getByName(java.lang.String name)
原文: Gets a Worldtype by its name
name
- 世界种类名