Package net.minecraftforge.common
Class BiomeDictionary
java.lang.Object
net.minecraftforge.common.BiomeDictionary
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map<ResourceKey<Biome>,BiomeDictionary.BiomeInfo>private static booleanprivate static org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTypes(ResourceKey<Biome> biome, BiomeDictionary.Type... types)Adds the given types to the biome.static booleanareSimilar(ResourceKey<Biome> biomeA, ResourceKey<Biome> biomeB)Checks if the two given biomes have types in common.private static BiomeDictionary.BiomeInfogetBiomeInfo(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 booleanhasAnyType(ResourceKey<Biome> biome)Checks if any type has been added to the given biome.static booleanhasType(ResourceKey<Biome> biome, BiomeDictionary.Type type)Checks if the given type has been added to the given biome.static voidinit()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()
-