Class BiomeDictionary

java.lang.Object
io.github.vampirestudios.vampirelib.api.BiomeDictionary

public class BiomeDictionary extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addTypes(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, BiomeDictionary.Type... types)
    Adds the given types to the biome.
    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.
    static Set<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>
    Gets the set of biomes that have the given 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 boolean
    hasAnyType(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
    Checks if any type has been added to the given biome.
    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.
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.