public class WorldType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static WorldType |
AMPLIFIED
amplified world type
|
private boolean |
canBeCreated
Whether this world type can be generated.
|
static WorldType |
CUSTOMIZED |
static WorldType |
DEBUG_WORLD |
static WorldType |
DEFAULT
Default world type.
|
static WorldType |
DEFAULT_1_1
Default (1.1) world type.
|
static WorldType |
FLAT
Flat world type.
|
private int |
generatorVersion
The int version of the ChunkProvider that generated this world.
|
private boolean |
hasNotificationData |
private boolean |
isWorldTypeVersioned
Whether this WorldType has a version or not.
|
static WorldType |
LARGE_BIOMES
Large Biome world Type.
|
private java.lang.String |
worldType |
private int |
worldTypeId
ID for this world type.
|
static WorldType[] |
worldTypes
List of world types.
|
Modifier | Constructor and Description |
---|---|
private |
WorldType(int id,
java.lang.String name) |
private |
WorldType(int id,
java.lang.String name,
int version) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
func_151359_c() |
boolean |
getCanBeCreated()
Gets whether this WorldType can be used to generate a new world.
|
int |
getGeneratorVersion()
Returns generatorVersion.
|
java.lang.String |
getTranslateName()
Gets the translation key for the name of this world type.
|
WorldType |
getWorldTypeForGeneratorVersion(int version) |
int |
getWorldTypeID() |
java.lang.String |
getWorldTypeName() |
boolean |
isVersioned()
Returns true if this world Type has a version associated with it.
|
static WorldType |
parseWorldType(java.lang.String type) |
private WorldType |
setCanBeCreated(boolean enable)
Sets canBeCreated to the provided value, and returns this.
|
private WorldType |
setNotificationData()
enables the display of generator.[worldtype].info message on the customize world menu
|
private WorldType |
setVersioned()
Flags this world type as having an associated version.
|
boolean |
showWorldInfoNotice()
returns true if selecting this worldtype from the customize menu should display the generator.[worldtype].info
message
|
public static final WorldType[] worldTypes
public static final WorldType DEFAULT
public static final WorldType FLAT
public static final WorldType LARGE_BIOMES
public static final WorldType AMPLIFIED
public static final WorldType CUSTOMIZED
public static final WorldType DEBUG_WORLD
public static final WorldType DEFAULT_1_1
private final int worldTypeId
private final java.lang.String worldType
private final int generatorVersion
private boolean canBeCreated
private boolean isWorldTypeVersioned
private boolean hasNotificationData
private WorldType(int id, java.lang.String name)
private WorldType(int id, java.lang.String name, int version)
public java.lang.String getWorldTypeName()
public java.lang.String getTranslateName()
public java.lang.String func_151359_c()
public int getGeneratorVersion()
public WorldType getWorldTypeForGeneratorVersion(int version)
private WorldType setCanBeCreated(boolean enable)
public boolean getCanBeCreated()
private WorldType setVersioned()
public boolean isVersioned()
public static WorldType parseWorldType(java.lang.String type)
public int getWorldTypeID()
public boolean showWorldInfoNotice()
private WorldType setNotificationData()