Class BiomeUtils

java.lang.Object
valorless.rarespawns.utils.BiomeUtils

public class BiomeUtils extends Object
Biome-related utility functions. Provides methods to check if a location is within specified biomes.
  • Constructor Details

    • BiomeUtils

      public BiomeUtils()
  • Method Details

    • isConditionMet

      public static boolean isConditionMet(org.bukkit.Location loc, EntityData data)
    • inBiome

      public static boolean inBiome(org.bukkit.Location loc, String biomeName)
      Checks if the given location is within the specified biome.
      Parameters:
      loc - The location to check.
      biomeName - The name of the biome to check against.
      Returns:
      true if the location is in the specified biome; false otherwise.
    • inBiome

      public static boolean inBiome(org.bukkit.Location loc, List<String> biomes)
      Checks if the given location is within any of the specified biomes.
      Parameters:
      loc - The location to check.
      biomes - A list of biome names to check against.
      Returns:
      true if the location is in any of the specified biomes; false otherwise.