Package valorless.rarespawns.utils
Class BiomeUtils
java.lang.Object
valorless.rarespawns.utils.BiomeUtils
Biome-related utility functions.
Provides methods to check if a location is within specified biomes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the given location is within the specified biome.static booleanChecks if the given location is within any of the specified biomes.static booleanisConditionMet(org.bukkit.Location loc, EntityData data)
-
Constructor Details
-
BiomeUtils
public BiomeUtils()
-
-
Method Details
-
isConditionMet
-
inBiome
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
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.
-