public class WorldType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static WorldType |
AMPLIFIED |
static WorldType |
CUSTOMIZED |
static WorldType |
DEBUG_ALL_BLOCK_STATES |
static WorldType |
DEFAULT |
static WorldType |
DEFAULT_1_1 |
static WorldType |
FLAT |
static WorldType |
LARGE_BIOMES |
static WorldType[] |
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 |
---|---|
boolean |
canBeCreated() |
GenLayer |
getBiomeLayer(long worldSeed,
GenLayer parentLayer,
ChunkGeneratorSettings chunkSettings)
Creates the GenLayerBiome used for generating the world with the specified ChunkProviderSettings JSON String
*IF AND ONLY IF* this WorldType == WorldType.CUSTOMIZED.
|
BiomeProvider |
getBiomeProvider(World world) |
IChunkGenerator |
getChunkGenerator(World world,
java.lang.String generatorOptions) |
float |
getCloudHeight()
Get the height to render the clouds for this world type
|
double |
getHorizon(World world) |
int |
getId() |
java.lang.String |
getInfoTranslationKey() |
int |
getMinimumSpawnHeight(World world) |
java.lang.String |
getName() |
int |
getSpawnFuzz(WorldServer world,
MinecraftServer server)
Gets the spawn fuzz for players who join the world.
|
java.lang.String |
getTranslationKey() |
int |
getVersion() |
WorldType |
getWorldTypeForGeneratorVersion(int version) |
boolean |
handleSlimeSpawnReduction(java.util.Random random,
World world) |
boolean |
hasInfoNotice() |
boolean |
isCustomizable()
Should world creation GUI show 'Customize' button for this world type?
|
boolean |
isVersioned() |
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) |
double |
voidFadeMagnitude() |
public static WorldType[] WORLD_TYPES
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_ALL_BLOCK_STATES
public static final WorldType DEFAULT_1_1
public WorldType(java.lang.String name)
name
- public java.lang.String getName()
public java.lang.String getTranslationKey()
public java.lang.String getInfoTranslationKey()
public int getVersion()
public WorldType getWorldTypeForGeneratorVersion(int version)
public boolean canBeCreated()
public boolean isVersioned()
public static WorldType parseWorldType(java.lang.String type)
public int getId()
public boolean hasInfoNotice()
public BiomeProvider getBiomeProvider(World world)
public IChunkGenerator 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(WorldServer world, MinecraftServer server)
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, ChunkGeneratorSettings chunkSettings)
worldSeed
- The world seedparentLayer
- The parent layer to feed into any layer you returnchunkSettings
- The ChunkGeneratorSettings constructed from the custom JSON