YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.WorldType Class Reference

Public Member Functions

 WorldType (int par1, String par2Str)
 
 WorldType (int par1, String par2Str, int par3)
 
String getWorldTypeName ()
 
String getTranslateName ()
 
int getGeneratorVersion ()
 
WorldType getWorldTypeForGeneratorVersion (int par1)
 
boolean getCanBeCreated ()
 
boolean isVersioned ()
 
int getWorldTypeID ()
 
WorldChunkManager getChunkManager (World world)
 
IChunkProvider getChunkGenerator (World world, String generatorOptions)
 
int getMinimumSpawnHeight (World world)
 
double getHorizon (World world)
 
boolean hasVoidParticles (boolean flag)
 
double voidFadeMagnitude ()
 
BiomeGenBase[] getBiomesForWorldType ()
 
void addNewBiome (BiomeGenBase biome)
 
void removeBiome (BiomeGenBase biome)
 
boolean handleSlimeSpawnReduction (Random random, World world)
 
void onGUICreateWorldPress ()
 
int getSpawnFuzz ()
 
void onCustomizeButton (Minecraft instance, GuiCreateWorld guiCreateWorld)
 
boolean isCustomizable ()
 

Static Public Member Functions

static WorldType parseWorldType (String par0Str)
 

Static Public Attributes

static final BiomeGenBase[] base11Biomes = new BiomeGenBase[] {BiomeGenBase.desert, BiomeGenBase.forest, BiomeGenBase.extremeHills, BiomeGenBase.swampland, BiomeGenBase.plains, BiomeGenBase.taiga}
 
static final BiomeGenBase[] base12Biomes = ObjectArrays.concat(base11Biomes, BiomeGenBase.jungle)
 
static final WorldType[] worldTypes = new WorldType[16]
 
static final WorldType DEFAULT = (new WorldType(0, "default", 1)).setVersioned()
 
static final WorldType FLAT = new WorldType(1, "flat")
 
static final WorldType LARGE_BIOMES = new WorldType(2, "largeBiomes")
 
static final WorldType DEFAULT_1_1 = (new WorldType(8, "default_1_1", 0)).setCanBeCreated(false)
 

Protected Attributes

BiomeGenBase[] biomesForWorldType
 

Constructor & Destructor Documentation

net.minecraft.world.WorldType.WorldType ( int  par1,
String  par2Str 
)
net.minecraft.world.WorldType.WorldType ( int  par1,
String  par2Str,
int  par3 
)

Member Function Documentation

void net.minecraft.world.WorldType.addNewBiome ( BiomeGenBase  biome)
BiomeGenBase [] net.minecraft.world.WorldType.getBiomesForWorldType ( )
boolean net.minecraft.world.WorldType.getCanBeCreated ( )

Gets whether this WorldType can be used to generate a new world.

IChunkProvider net.minecraft.world.WorldType.getChunkGenerator ( World  world,
String  generatorOptions 
)
WorldChunkManager net.minecraft.world.WorldType.getChunkManager ( World  world)
int net.minecraft.world.WorldType.getGeneratorVersion ( )

Returns generatorVersion.

double net.minecraft.world.WorldType.getHorizon ( World  world)
int net.minecraft.world.WorldType.getMinimumSpawnHeight ( World  world)
int net.minecraft.world.WorldType.getSpawnFuzz ( )

Gets the spawn fuzz for players who join the world. Useful for void world types.

Returns
Fuzz for entity initial spawn in blocks.
String net.minecraft.world.WorldType.getTranslateName ( )

Gets the translation key for the name of this world type.

WorldType net.minecraft.world.WorldType.getWorldTypeForGeneratorVersion ( int  par1)
int net.minecraft.world.WorldType.getWorldTypeID ( )
String net.minecraft.world.WorldType.getWorldTypeName ( )
boolean net.minecraft.world.WorldType.handleSlimeSpawnReduction ( Random  random,
World  world 
)
boolean net.minecraft.world.WorldType.hasVoidParticles ( boolean  flag)
boolean net.minecraft.world.WorldType.isCustomizable ( )
boolean net.minecraft.world.WorldType.isVersioned ( )

Returns true if this world Type has a version associated with it.

void net.minecraft.world.WorldType.onCustomizeButton ( Minecraft  instance,
GuiCreateWorld  guiCreateWorld 
)

Called when the 'Customize' button is pressed on world creation GUI

Parameters
instanceThe minecraft instance
guiCreateWorldthe createworld GUI
void net.minecraft.world.WorldType.onGUICreateWorldPress ( )

Called when 'Create New World' button is pressed before starting game

static WorldType net.minecraft.world.WorldType.parseWorldType ( String  par0Str)
static
void net.minecraft.world.WorldType.removeBiome ( BiomeGenBase  biome)
double net.minecraft.world.WorldType.voidFadeMagnitude ( )

Member Data Documentation

final BiomeGenBase [] net.minecraft.world.WorldType.base12Biomes = ObjectArrays.concat(base11Biomes, BiomeGenBase.jungle)
static
BiomeGenBase [] net.minecraft.world.WorldType.biomesForWorldType
protected
final WorldType net.minecraft.world.WorldType.DEFAULT = (new WorldType(0, "default", 1)).setVersioned()
static

Default world type.

final WorldType net.minecraft.world.WorldType.DEFAULT_1_1 = (new WorldType(8, "default_1_1", 0)).setCanBeCreated(false)
static

Default (1.1) world type.

final WorldType net.minecraft.world.WorldType.FLAT = new WorldType(1, "flat")
static

Flat world type.

final WorldType net.minecraft.world.WorldType.LARGE_BIOMES = new WorldType(2, "largeBiomes")
static

Large Biome world Type.

final WorldType [] net.minecraft.world.WorldType.worldTypes = new WorldType[16]
static

List of world types.


The documentation for this class was generated from the following file: