public class WorldType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static WorldType |
AMPLIFIED
amplified world type
|
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.
|
static WorldType |
LARGE_BIOMES
Large Biome world Type.
|
static WorldType[] |
worldTypes
List of world types.
|
Constructor and Description |
---|
WorldType(java.lang.String name)
Creates a new world type, the ID is hidden and should not be referenced by modders.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
func_151359_c() |
GenLayer |
getBiomeLayer(long worldSeed,
GenLayer parentLayer,
java.lang.String chunkProviderSettingsJson)
Creates the GenLayerBiome used for generating the world with the specified ChunkProviderSettings JSON String
*IF AND ONLY IF* this WorldType == WorldType.CUSTOMIZED.
|
boolean |
getCanBeCreated()
Gets whether this WorldType can be used to generate a new world.
|
IChunkProvider |
getChunkGenerator(World world,
java.lang.String generatorOptions) |
WorldChunkManager |
getChunkManager(World world) |
float |
getCloudHeight()
Get the height to render the clouds for this world type
|
int |
getGeneratorVersion()
Returns generatorVersion.
|
double |
getHorizon(World world) |
int |
getMinimumSpawnHeight(World world) |
int |
getSpawnFuzz()
Gets the spawn fuzz for players who join the world.
|
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 |
handleSlimeSpawnReduction(java.util.Random random,
World world) |
boolean |
isCustomizable()
Should world creation GUI show 'Customize' button for this world type?
|
boolean |
isVersioned()
Returns true if this world Type has a version associated with it.
|
void |
onCustomizeButton(Minecraft mc,
GuiCreateWorld guiCreateWorld)
Called when the 'Customize' button is pressed on world creation GUI
|
void |
onGUICreateWorldPress()
Called when 'Create New World' button is pressed before starting game
|
static WorldType |
parseWorldType(java.lang.String type) |
boolean |
showWorldInfoNotice()
returns true if selecting this worldtype from the customize menu should display the generator.[worldtype].info
message
|
double |
voidFadeMagnitude() |
public static 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
public WorldType(java.lang.String name)
name
- 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)
public boolean getCanBeCreated()
public boolean isVersioned()
public static WorldType parseWorldType(java.lang.String type)
public int getWorldTypeID()
public boolean showWorldInfoNotice()
public WorldChunkManager getChunkManager(World world)
public IChunkProvider getChunkGenerator(World world, java.lang.String generatorOptions)
public int getMinimumSpawnHeight(World world)
public double getHorizon(World world)
public double voidFadeMagnitude()
public boolean handleSlimeSpawnReduction(java.util.Random random, World world)
public void onGUICreateWorldPress()
public int getSpawnFuzz()
public void onCustomizeButton(Minecraft mc, GuiCreateWorld guiCreateWorld)
mc
- The Minecraft instanceguiCreateWorld
- the createworld GUIpublic boolean isCustomizable()
public float getCloudHeight()
public GenLayer getBiomeLayer(long worldSeed, GenLayer parentLayer, java.lang.String chunkProviderSettingsJson)
worldSeed
- The world seedparentLayer
- The parent layer to feed into any layer you returnchunkProviderSettingsJson
- The JSON string to use when initializing ChunkProviderSettings.Factory