Class WeatherResource
java.lang.Object
com.hypixel.hytale.builtin.weather.resources.WeatherResource
- All Implemented Interfaces:
Resource<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.Int2IntMapprivate intfloatprivate intprivate intstatic final floatFields inherited from interface com.hypixel.hytale.component.Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancompareAndSwapHour(int currentHour) booleanit.unimi.dsi.fastutil.ints.Int2IntMapintstatic ResourceType<EntityStore, WeatherResource> intgetWeatherIndexForEnvironment(int environmentId) voidsetForcedWeather(String forcedWeather)
-
Field Details
-
WEATHER_UPDATE_RATE_S
public static final float WEATHER_UPDATE_RATE_S- See Also:
-
forcedWeatherIndex
private int forcedWeatherIndex -
previousForcedWeatherIndex
private int previousForcedWeatherIndex -
environmentWeather
@Nonnull private final it.unimi.dsi.fastutil.ints.Int2IntMap environmentWeather -
previousHour
private int previousHour -
playerUpdateDelay
public float playerUpdateDelay
-
-
Constructor Details
-
WeatherResource
public WeatherResource()
-
-
Method Details
-
getResourceType
-
getEnvironmentWeather
@Nonnull public it.unimi.dsi.fastutil.ints.Int2IntMap getEnvironmentWeather() -
getWeatherIndexForEnvironment
public int getWeatherIndexForEnvironment(int environmentId) -
getForcedWeatherIndex
public int getForcedWeatherIndex() -
setForcedWeather
-
consumeForcedWeatherChange
public boolean consumeForcedWeatherChange() -
compareAndSwapHour
public boolean compareAndSwapHour(int currentHour) -
clone
- Specified by:
clonein interfaceResource<EntityStore>- Overrides:
clonein classObject
-