Package net.minecraftforge.common
Class BiomeDictionary
- java.lang.Object
-
- net.minecraftforge.common.BiomeDictionary
-
public class BiomeDictionary extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BiomeDictionary.BiomeInfo
static class
BiomeDictionary.Type
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<RegistryKey<Biome>,BiomeDictionary.BiomeInfo>
biomeInfoMap
private static boolean
DEBUG
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description BiomeDictionary()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.util.Set<RegistryKey<Biome>>
getBiomes(BiomeDictionary.Type type)
Gets the set of biomes that have the given type.static java.util.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 java.util.Collection<BiomeDictionary.Type>
listSupertypes(BiomeDictionary.Type... types)
private static void
registerVanillaBiomes()
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
biomeInfoMap
private static final java.util.Map<RegistryKey<Biome>,BiomeDictionary.BiomeInfo> biomeInfoMap
-
-
Method Detail
-
init
public static void init()
-
addTypes
public static void addTypes(RegistryKey<Biome> biome, BiomeDictionary.Type... types)
Adds the given types to the biome.
-
getBiomes
@Nonnull public static java.util.Set<RegistryKey<Biome>> getBiomes(BiomeDictionary.Type type)
Gets the set of biomes that have the given type.
-
getTypes
@Nonnull public static java.util.Set<BiomeDictionary.Type> getTypes(RegistryKey<Biome> biome)
Gets the set of types that have been added to the given biome.
-
areSimilar
public static boolean areSimilar(RegistryKey<Biome> biomeA, RegistryKey<Biome> biomeB)
Checks if the two given biomes have types in common.- Returns:
- returns true if a common type is found, false otherwise
-
hasType
public static boolean hasType(RegistryKey<Biome> biome, BiomeDictionary.Type type)
Checks if the given type has been added to the given biome.
-
hasAnyType
public static boolean hasAnyType(RegistryKey<Biome> biome)
Checks if any type has been added to the given biome.
-
getBiomeInfo
private static BiomeDictionary.BiomeInfo getBiomeInfo(RegistryKey<Biome> biome)
-
listSupertypes
private static java.util.Collection<BiomeDictionary.Type> listSupertypes(BiomeDictionary.Type... types)
-
registerVanillaBiomes
private static void registerVanillaBiomes()
-
-