Package valorless.rarespawns.utils
Class WeatherUtils
java.lang.Object
valorless.rarespawns.utils.WeatherUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanweatherMatch(org.bukkit.Location location, Weather type) Checks if the weather at the given location matches the specified type.static booleanweatherMatch(org.bukkit.World world, Weather type) Checks if the weather in the given world matches the specified type.
-
Constructor Details
-
WeatherUtils
public WeatherUtils()
-
-
Method Details
-
weatherMatch
Checks if the weather in the given world matches the specified type.- Parameters:
world- The world to check.type- The weather type to check against.- Returns:
- true if the weather matches the specified type; false otherwise.
-
weatherMatch
Checks if the weather at the given location matches the specified type.- Parameters:
location- The location to check.type- The weather type to check against.- Returns:
- true if the weather matches the specified type; false otherwise.
-