public class BiomeDictionary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BiomeDictionary.Type |
Constructor and Description |
---|
BiomeDictionary() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areBiomesEquivalent(Biome biomeA,
Biome biomeB)
Checks to see if two biomes are registered as having the same type
|
static Biome[] |
getBiomesForType(BiomeDictionary.Type type)
Returns a list of biomes registered with a specific type
|
static BiomeDictionary.Type[] |
getTypesForBiome(Biome biome)
Gets a list of Types that a specific biome is registered with
|
static boolean |
isBiomeOfType(Biome biome,
BiomeDictionary.Type type)
Checks to see if the given biome is registered as being a specific type
|
static boolean |
isBiomeRegistered(Biome biome)
Checks to see if the given biome has been registered as being of any type
|
static void |
makeBestGuess(Biome 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
|
static void |
registerAllBiomes() |
static void |
registerAllBiomesAndGenerateEvents()
Loops through the biome list and automatically adds tags to any biome that does not have any
This is called by Forge at postinit time.
|
static boolean |
registerBiomeType(Biome biome,
BiomeDictionary.Type... types)
Registers a biome with a specific biome type
|
public static boolean registerBiomeType(Biome biome, BiomeDictionary.Type... types)
biome
- the biome to be registeredtype
- the type to register the biome aspublic static Biome[] getBiomesForType(BiomeDictionary.Type type)
type
- the Type to look forpublic static BiomeDictionary.Type[] getTypesForBiome(Biome biome)
biome
- the biome to checkpublic static boolean areBiomesEquivalent(Biome biomeA, Biome biomeB)
biomeA
- biomeB
- public static boolean isBiomeOfType(Biome biome, BiomeDictionary.Type type)
biome
- the biome to be consideredtype
- the type to check forpublic static boolean isBiomeRegistered(Biome biome)
biome
- the biome to considerpublic static void registerAllBiomes()
public static void registerAllBiomesAndGenerateEvents()
public static void makeBestGuess(Biome biome)
biome
- the biome to be considered