Class WeatherUtils

java.lang.Object
valorless.rarespawns.utils.WeatherUtils

public class WeatherUtils extends Object
  • Constructor Details

    • WeatherUtils

      public WeatherUtils()
  • Method Details

    • weatherMatch

      public static boolean weatherMatch(org.bukkit.World world, Weather type)
      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

      public static boolean weatherMatch(org.bukkit.Location location, Weather type)
      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.