Package net.minecraftforge.common
Class BiomeDictionary
java.lang.Object
net.minecraftforge.common.BiomeDictionary
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Map<ResourceKey<Biome>,BiomeDictionary.BiomeInfo>
private static boolean
private static org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTypes(ResourceKey<Biome> biome, BiomeDictionary.Type... types)
Adds the given types to the biome.static boolean
areSimilar(ResourceKey<Biome> biomeA, ResourceKey<Biome> biomeB)
Checks if the two given biomes have types in common.private static BiomeDictionary.BiomeInfo
getBiomeInfo(ResourceKey<Biome> biome)
static Set<ResourceKey<Biome>>
getBiomes(BiomeDictionary.Type type)
Gets the set of biomes that have the given type.static Set<BiomeDictionary.Type>
getTypes(ResourceKey<Biome> biome)
Gets the set of types that have been added to the given biome.static boolean
hasAnyType(ResourceKey<Biome> biome)
Checks if any type has been added to the given biome.static boolean
hasType(ResourceKey<Biome> biome, BiomeDictionary.Type type)
Checks if the given type has been added to the given biome.static void
init()
private static Collection<BiomeDictionary.Type>
listSupertypes(BiomeDictionary.Type... types)
private static void
-
Field Details
-
DEBUG
private static final boolean DEBUG- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
biomeInfoMap
-
-
Constructor Details
-
BiomeDictionary
public BiomeDictionary()
-
-
Method Details
-
init
public static void init() -
addTypes
Adds the given types to the biome. -
getBiomes
Gets the set of biomes that have the given type. -
getTypes
Gets the set of types that have been added to the given biome. -
areSimilar
Checks if the two given biomes have types in common.- Returns:
- returns true if a common type is found, false otherwise
-
hasType
Checks if the given type has been added to the given biome. -
hasAnyType
Checks if any type has been added to the given biome. -
getBiomeInfo
-
listSupertypes
-
registerVanillaBiomes
private static void registerVanillaBiomes()
-