public class WorldType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static WorldType |
AMPLIFIED |
static WorldType |
DEFAULT |
static WorldType |
DEFAULT_1_1 |
static WorldType |
FLAT |
static WorldType |
LARGE_BIOMES |
static WorldType[] |
worldTypes |
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)
Creates the GenLayerBiome used for generating the world
|
boolean |
getCanBeCreated() |
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() |
double |
getHorizon(World world) |
int |
getMinimumSpawnHeight(World world) |
int |
getSpawnFuzz()
Gets the spawn fuzz for players who join the world.
|
java.lang.String |
getTranslateName() |
WorldType |
getWorldTypeForGeneratorVersion(int par1) |
int |
getWorldTypeID() |
java.lang.String |
getWorldTypeName() |
boolean |
handleSlimeSpawnReduction(java.util.Random random,
World world) |
boolean |
hasVoidParticles(boolean flag) |
boolean |
isCustomizable()
Should world creation GUI show 'Customize' button for this world type?
|
boolean |
isVersioned() |
void |
onCustomizeButton(Minecraft instance,
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 par0Str) |
boolean |
showWorldInfoNotice() |
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 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 par1)
public boolean getCanBeCreated()
public boolean isVersioned()
public static WorldType parseWorldType(java.lang.String par0Str)
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 boolean hasVoidParticles(boolean flag)
public double voidFadeMagnitude()
public boolean handleSlimeSpawnReduction(java.util.Random random, World world)
public void onGUICreateWorldPress()
public int getSpawnFuzz()
public void onCustomizeButton(Minecraft instance, GuiCreateWorld guiCreateWorld)
instance
- The minecraft instanceguiCreateWorld
- the createworld GUIpublic boolean isCustomizable()
public float getCloudHeight()
public GenLayer getBiomeLayer(long worldSeed, GenLayer parentLayer)
worldSeed
- The world seedparentLayer
- The parent layer to feed into any layer you return