public class BiomeDictionary extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BiomeDictionary.Type |
Constructor and Description |
---|
BiomeDictionary() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areBiomesEquivalent(BiomeGenBase biomeA,
BiomeGenBase biomeB)
Checks to see if two biomes are registered as having the same type
|
static BiomeGenBase[] |
getBiomesForType(BiomeDictionary.Type type)
Returns a list of biomes registered with a specific type
|
static BiomeDictionary.Type[] |
getTypesForBiome(BiomeGenBase biome)
Gets a list of Types that a specific biome is registered with
|
static boolean |
isBiomeOfType(BiomeGenBase biome,
BiomeDictionary.Type type)
Checks to see if the given biome is registered as being a specific type
|
static boolean |
isBiomeRegistered(BiomeGenBase biome)
Checks to see if the given biome has been registered as being of any type
|
static boolean |
isBiomeRegistered(int biomeID) |
static void |
makeBestGuess(BiomeGenBase biome)
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
|
static void |
registerAllBiomes()
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 |
registerBiomeType(BiomeGenBase biome,
BiomeDictionary.Type... types)
Registers a biome with a specific biome type
|
public static boolean registerBiomeType(BiomeGenBase biome, BiomeDictionary.Type... types)
biome
- the biome to be registeredtype
- the type to register the biome aspublic static BiomeGenBase[] getBiomesForType(BiomeDictionary.Type type)
type
- the Type to look forpublic static BiomeDictionary.Type[] getTypesForBiome(BiomeGenBase biome)
biome
- the biome to checkpublic static boolean areBiomesEquivalent(BiomeGenBase biomeA, BiomeGenBase biomeB)
biomeA
- biomeB
- public static boolean isBiomeOfType(BiomeGenBase biome, BiomeDictionary.Type type)
biome
- the biome to be consideredtype
- the type to check forpublic static boolean isBiomeRegistered(BiomeGenBase biome)
biome
- the biome to considerpublic static boolean isBiomeRegistered(int biomeID)
public static void registerAllBiomes()
public static void makeBestGuess(BiomeGenBase biome)
biome
- the biome to be considered