public class BiomeDictionary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
BiomeDictionary.BiomeInfo |
static class |
BiomeDictionary.Type |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<ResourceLocation,BiomeDictionary.BiomeInfo> |
biomeInfoMap |
private static boolean |
DEBUG |
Constructor and Description |
---|
BiomeDictionary() |
Modifier and Type | Method and Description |
---|---|
static void |
addTypes(Biome biome,
BiomeDictionary.Type... types)
Adds the given types to the biome.
|
static boolean |
areSimilar(Biome biomeA,
Biome biomeB)
Checks if the two given biomes have types in common.
|
(package private) static void |
ensureHasTypes(Biome biome)
Ensure that at least one type has been added to the given biome.
|
private static BiomeDictionary.BiomeInfo |
getBiomeInfo(Biome biome) |
static java.util.Set<Biome> |
getBiomes(BiomeDictionary.Type type)
Gets the set of biomes that have the given type.
|
static java.util.Set<BiomeDictionary.Type> |
getTypes(Biome biome)
Gets the set of types that have been added to the given biome.
|
static boolean |
hasAnyType(Biome biome)
Checks if any type has been added to the given biome.
|
static boolean |
hasType(Biome biome,
BiomeDictionary.Type type)
Checks if the given type has been added to the given biome.
|
private static java.util.Collection<BiomeDictionary.Type> |
listSupertypes(BiomeDictionary.Type... types) |
static void |
makeBestGuess(Biome biome)
Automatically adds appropriate types to a given biome based on certain heuristics.
|
private static void |
registerVanillaBiomes() |
private static final boolean DEBUG
private static final java.util.Map<ResourceLocation,BiomeDictionary.BiomeInfo> biomeInfoMap
public static void addTypes(Biome biome, BiomeDictionary.Type... types)
@Nonnull public static java.util.Set<Biome> getBiomes(BiomeDictionary.Type type)
@Nonnull public static java.util.Set<BiomeDictionary.Type> getTypes(Biome biome)
public static boolean areSimilar(Biome biomeA, Biome biomeB)
public static boolean hasType(Biome biome, BiomeDictionary.Type type)
public static boolean hasAnyType(Biome biome)
public static void makeBestGuess(Biome biome)
private static BiomeDictionary.BiomeInfo getBiomeInfo(Biome biome)
static void ensureHasTypes(Biome biome)
private static java.util.Collection<BiomeDictionary.Type> listSupertypes(BiomeDictionary.Type... types)
private static void registerVanillaBiomes()