Interface WeatherUniverse.Mutable
-
- All Superinterfaces:
WeatherUniverse
- All Known Subinterfaces:
ServerWorld
,ServerWorldProperties
- Enclosing interface:
- WeatherUniverse
public static interface WeatherUniverse.Mutable extends WeatherUniverse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.weather.WeatherUniverse
WeatherUniverse.Mutable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setWeather(WeatherType type)
Sets theWeather
of this universe with a random duration.void
setWeather(WeatherType type, Ticks ticks)
Sets theWeatherType
of the world with the specifiedTicks
duration.-
Methods inherited from interface org.spongepowered.api.world.weather.WeatherUniverse
weather
-
-
-
-
Method Detail
-
setWeather
void setWeather(WeatherType type)
Sets theWeather
of this universe with a random duration.- Parameters:
type
- The type of weather
-
setWeather
void setWeather(WeatherType type, Ticks ticks)
Sets theWeatherType
of the world with the specifiedTicks
duration.- Parameters:
type
- The weather that should be switched toticks
- The specified tick duration
-
-