Package net.minecraftforge.common
Class BiomeDictionary
java.lang.Object
net.minecraftforge.common.BiomeDictionary
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<RegistryKey<Biome>,
BiomeDictionary.BiomeInfo> private static final boolean
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTypes
(RegistryKey<Biome> biome, BiomeDictionary.Type... types) Adds the given types to the biome.static boolean
areSimilar
(RegistryKey<Biome> biomeA, RegistryKey<Biome> biomeB) Checks if the two given biomes have types in common.private static BiomeDictionary.BiomeInfo
getBiomeInfo
(RegistryKey<Biome> biome) static Set<RegistryKey<Biome>>
Gets the set of biomes that have the given type.static Set<BiomeDictionary.Type>
getTypes
(RegistryKey<Biome> biome) Gets the set of types that have been added to the given biome.static boolean
hasAnyType
(RegistryKey<Biome> biome) Checks if any type has been added to the given biome.static boolean
hasType
(RegistryKey<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:
-
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()
-