Interface Weather

    • Method Detail

      • remainingDuration

        Ticks remainingDuration()
        Gets the remaining Ticks of this weather.
        Returns:
        The remaining duration
      • runningDuration

        Ticks runningDuration()
        Gets the number of Ticks that the weather has ran for.
        Returns:
        The running duration
      • of

        static Weather of​(java.util.function.Supplier<WeatherType> type,
                          long duration)
        Creates a new weather with given type, remaining duration and no running duration
        Parameters:
        type - The weather type
        duration - The weather remaining duration
        Returns:
        The new weather
      • of

        static Weather of​(java.util.function.Supplier<WeatherType> type,
                          Ticks duration)
        Creates a new weather with given type, remaining duration and no running duration
        Parameters:
        type - The weather type
        duration - The weather remaining duration
        Returns:
        The new weather
      • of

        static Weather of​(WeatherType type,
                          long duration)
        Creates a new weather with given type, remaining duration and no running duration
        Parameters:
        type - The weather type
        duration - The weather remaining duration
        Returns:
        The new weather
      • of

        static Weather of​(WeatherType type,
                          Ticks duration)
        Creates a new weather with given type, remaining duration and no running duration
        Parameters:
        type - The weather type
        duration - The weather remaining duration
        Returns:
        The new weather