WeatherResource

public class WeatherResource implements Resource

Class WeatherResource. Provides weatherresource functionality for the Hytale server.

java.lang.Object > WeatherResource

Field Summary

forcedWeatherIndex

private int forcedWeatherIndex

Field forcedWeatherIndex.

previousForcedWeatherIndex

private int previousForcedWeatherIndex

Field previousForcedWeatherIndex.

previousHour

private int previousHour

Field previousHour.

playerUpdateDelay

public float playerUpdateDelay

Field playerUpdateDelay.

Method Detail

getResourceType

public WeatherResource> getResourceType ()

Method getResourceType.

WeatherResource

public public WeatherResource ()

Method WeatherResource.

getEnvironmentWeather

public Int2IntMap getEnvironmentWeather ()

Method getEnvironmentWeather.

getWeatherIndexForEnvironment

public int getWeatherIndexForEnvironment (final int environmentId)

Method getWeatherIndexForEnvironment.

Parameters:
final int environmentId

getForcedWeatherIndex

public int getForcedWeatherIndex ()

Method getForcedWeatherIndex.

setForcedWeather

public void setForcedWeather (@Nullable final String forcedWeather)

Method setForcedWeather.

Parameters:
@Nullable final String forcedWeather

consumeForcedWeatherChange

public boolean consumeForcedWeatherChange ()

Method consumeForcedWeatherChange.

compareAndSwapHour

public boolean compareAndSwapHour (final int currentHour)

Method compareAndSwapHour.

Parameters:
final int currentHour

clone

public Resource clone ()

Method clone.