YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.common.BiomeDictionary Class Reference

Classes

enum  Type
 

Static Public Member Functions

static boolean registerBiomeType (BiomeGenBase biome, Type...types)
 
static BiomeGenBase[] getBiomesForType (Type type)
 
static Type[] getTypesForBiome (BiomeGenBase biome)
 
static boolean areBiomesEquivalent (BiomeGenBase biomeA, BiomeGenBase biomeB)
 
static boolean isBiomeOfType (BiomeGenBase biome, Type type)
 
static boolean isBiomeRegistered (BiomeGenBase biome)
 
static boolean isBiomeRegistered (int biomeID)
 
static void registerAllBiomes ()
 
static void makeBestGuess (BiomeGenBase biome)
 

Member Function Documentation

static boolean net.minecraftforge.common.BiomeDictionary.areBiomesEquivalent ( BiomeGenBase  biomeA,
BiomeGenBase  biomeB 
)
static

Checks to see if two biomes are registered as having the same type

Parameters
biomeA
biomeB
Returns
returns true if a common type is found, false otherwise
static BiomeGenBase [] net.minecraftforge.common.BiomeDictionary.getBiomesForType ( Type  type)
static

Returns a list of biomes registered with a specific type

Parameters
typethe Type to look for
Returns
a list of biomes of the specified type, null if there are none
static Type [] net.minecraftforge.common.BiomeDictionary.getTypesForBiome ( BiomeGenBase  biome)
static

Gets a list of Types that a specific biome is registered with

Parameters
biomethe biome to check
Returns
the list of types, null if there are none
static boolean net.minecraftforge.common.BiomeDictionary.isBiomeOfType ( BiomeGenBase  biome,
Type  type 
)
static

Checks to see if the given biome is registered as being a specific type

Parameters
biomethe biome to be considered
typethe type to check for
Returns
returns true if the biome is registered as being of type type, false otherwise
static boolean net.minecraftforge.common.BiomeDictionary.isBiomeRegistered ( BiomeGenBase  biome)
static

Checks to see if the given biome has been registered as being of any type

Parameters
biomethe biome to consider
Returns
returns true if the biome has been registered, false otherwise
static boolean net.minecraftforge.common.BiomeDictionary.isBiomeRegistered ( int  biomeID)
static
static void net.minecraftforge.common.BiomeDictionary.makeBestGuess ( BiomeGenBase  biome)
static

Automatically looks for and registers a given biome with appropriate tags This method is called automatically if a biome has not been registered with any tags, And another method requests information about it

NOTE: You can opt out of having your biome registered by registering it as type NULL

Parameters
biomethe biome to be considered
static void net.minecraftforge.common.BiomeDictionary.registerAllBiomes ( )
static

Loops through the biome list and automatically adds tags to any biome that does not have any This should be called in postInit to make sure all biomes have been registered

DO NOT call this during world generation

static boolean net.minecraftforge.common.BiomeDictionary.registerBiomeType ( BiomeGenBase  biome,
Type...  types 
)
static

Registers a biome with a specific biome type

Parameters
biomethe biome to be registered
typethe type to register the biome as
Returns
returns true if the biome was registered successfully

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