Class BiomeDictionary
java.lang.Object
io.github.vampirestudios.vampirelib.api.BiomeDictionary
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTypes(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, BiomeDictionary.Type... types) Adds the given types to the biome.static booleanareSimilar(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biomeA, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biomeB) Checks if the two given biomes have types in common.static Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>Gets the set of biomes that have the given type.static Set<BiomeDictionary.Type>getTypes(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome) Gets the set of types that have been added to the given biome.static booleanhasAnyType(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome) Checks if any type has been added to the given biome.static booleanhasType(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, BiomeDictionary.Type type) Checks if the given type has been added to the given biome.static voidinit()
-
Constructor Details
-
BiomeDictionary
public BiomeDictionary()
-
-
Method Details
-
init
public static void init() -
addTypes
public static void addTypes(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, BiomeDictionary.Type... types) Adds the given types to the biome. -
getBiomes
public static Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>> getBiomes(BiomeDictionary.Type type) Gets the set of biomes that have the given type. -
getTypes
public static Set<BiomeDictionary.Type> getTypes(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome) Gets the set of types that have been added to the given biome. -
areSimilar
public static boolean areSimilar(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biomeA, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.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(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, BiomeDictionary.Type type) Checks if the given type has been added to the given biome. -
hasAnyType
public static boolean hasAnyType(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome) Checks if any type has been added to the given biome.
-