Interface Weather
- All Superinterfaces:
DataSerializable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Weatherof(Supplier<WeatherType> type, long duration) Creates a new weather with given type, remaining duration and no running durationstatic Weatherof(Supplier<WeatherType> type, Ticks duration) Creates a new weather with given type, remaining duration and no running durationstatic Weatherof(WeatherType type, long duration) Creates a new weather with given type, remaining duration and no running durationstatic Weatherof(WeatherType type, Ticks duration) Creates a new weather with given type, remaining duration and no running durationGets the remainingTicksof this weather.Gets the number ofTicksthat the weather has ran for.type()Gets thetype.Methods inherited from interface DataSerializable
contentVersion, toContainer, toView
-
Method Details
-
type
-
remainingDuration
-
runningDuration
-
of
Creates a new weather with given type, remaining duration and no running duration- Parameters:
type- The weather typeduration- The weather remaining duration- Returns:
- The new weather
-
of
Creates a new weather with given type, remaining duration and no running duration- Parameters:
type- The weather typeduration- The weather remaining duration- Returns:
- The new weather
-
of
Creates a new weather with given type, remaining duration and no running duration- Parameters:
type- The weather typeduration- The weather remaining duration- Returns:
- The new weather
-
of
Creates a new weather with given type, remaining duration and no running duration- Parameters:
type- The weather typeduration- The weather remaining duration- Returns:
- The new weather
-