public enum DimensionType extends java.lang.Enum<DimensionType>
Modifier and Type | Method and Description |
---|---|
static DimensionType |
byName(java.lang.String p_193417_0_) |
WorldProvider |
createDimension() |
static DimensionType |
getById(int id) |
int |
getId() |
java.lang.String |
getName() |
java.lang.String |
getSuffix() |
static DimensionType |
register(java.lang.String name,
java.lang.String suffix,
int id,
java.lang.Class<? extends WorldProvider> provider,
boolean keepLoaded) |
DimensionType |
setLoadSpawn(boolean value) |
boolean |
shouldLoadSpawn() |
static DimensionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DimensionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DimensionType OVERWORLD
public static final DimensionType NETHER
public static final DimensionType THE_END
public static DimensionType[] values()
for (DimensionType c : DimensionType.values()) System.out.println(c);
public static DimensionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public java.lang.String getName()
public java.lang.String getSuffix()
public WorldProvider createDimension()
public static DimensionType getById(int id)
public boolean shouldLoadSpawn()
public DimensionType setLoadSpawn(boolean value)
public static DimensionType register(java.lang.String name, java.lang.String suffix, int id, java.lang.Class<? extends WorldProvider> provider, boolean keepLoaded)
public static DimensionType byName(java.lang.String p_193417_0_)