Package mindustry.type
Class Weather.WeatherEntry
java.lang.Object
mindustry.type.Weather.WeatherEntry
- Enclosing class:
- Weather
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If true, this weather is always active.float
Cooldown time before the next weather event takes place This is *state*, not configuration.float
Intensity of the weather produced.float
Minimum and maximum spacing between weather events.float
Minimum and maximum spacing between weather events.float
Minimum and maximum spacing between weather events.float
Minimum and maximum spacing between weather events.The type of weather used. -
Constructor Summary
ConstructorDescriptionWeatherEntry
(Weather weather) Creates a weather entry with some approximate weather values.WeatherEntry
(Weather weather, float minFrequency, float maxFrequency, float minDuration, float maxDuration) -
Method Summary
-
Field Details
-
weather
The type of weather used. -
minFrequency
public float minFrequencyMinimum and maximum spacing between weather events. Does not include the time of the event itself. -
maxFrequency
public float maxFrequencyMinimum and maximum spacing between weather events. Does not include the time of the event itself. -
minDuration
public float minDurationMinimum and maximum spacing between weather events. Does not include the time of the event itself. -
maxDuration
public float maxDurationMinimum and maximum spacing between weather events. Does not include the time of the event itself. -
cooldown
public float cooldownCooldown time before the next weather event takes place This is *state*, not configuration. -
intensity
public float intensityIntensity of the weather produced. -
always
public boolean alwaysIf true, this weather is always active.
-
-
Constructor Details
-
WeatherEntry
Creates a weather entry with some approximate weather values. -
WeatherEntry
public WeatherEntry(Weather weather, float minFrequency, float maxFrequency, float minDuration, float maxDuration) -
WeatherEntry
public WeatherEntry()
-