classpublicPriority 3
Weather
com.hypixel.hytale.server.core.asset.type.weather.config.Weather
implements JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Weather>>, NetworkSerializable
33
Methods
33
Public Methods
28
Fields
3
Constructors
Constants
AssetBuilderCodec<String, Weather>CODEC= AssetBuilderCodec.builder(
Weather.class,
Weather::new,
Codec.STRING,
...
float[]DEFAULT_FOG_DISTANCE= <complex>
BuilderCodec<WeatherParticle>PARTICLE_CODEC= BuilderCodec.builder(WeatherParticle.class, WeatherParticle::new)
.documentation("Particle ...
WeatherUNKNOWN= new Weather("Unknown")
intUNKNOWN_ID= 0
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(Weather::getAssetStore))
Constructors
protected
Weather()public
Weather(String id, DayTexture[] moons, Cloud[] clouds, TimeFloat[] sunlightDampingMultiplier, TimeColor[] sunlightColors, TimeColor[] sunColors, TimeColorAlpha[] moonColors, TimeColorAlpha[] sunGlowColors, TimeColorAlpha[] moonGlowColors, TimeFloat[] sunScales, TimeFloat[] moonScales, TimeColorAlpha[] skyTopColors, TimeColorAlpha[] skyBottomColors, TimeColorAlpha[] skySunsetColors, TimeColor[] fogColors, TimeFloat[] fogHeightFalloffs, TimeFloat[] fogDensities, TimeColor[] waterTints, float[] fogDistance, FogOptions fogOptions, String screenEffect, TimeColorAlpha[] screenEffectColors, TimeColor[] colorFilters, String stars, WeatherParticle particle)public
Weather(String id)Methods
Public Methods (33)
publicstatic
IndexedLookupTableAssetMap<String, Weather> getAssetMap()publicstatic
AssetStore<String, Weather, IndexedLookupTableAssetMap<String, Weather>> getAssetStore()public
Cloud[] getClouds()public
TimeColor[] getColorFilters()public
TimeColor[] getFogColors()public
TimeFloat[] getFogDensities()public
float[] getFogDistance()public
TimeFloat[] getFogHeightFalloffs()public
FogOptions getFogOptions()public
String getId()public
TimeColorAlpha[] getMoonColors()public
TimeColorAlpha[] getMoonGlowColors()public
TimeFloat[] getMoonScales()public
DayTexture[] getMoons()public
WeatherParticle getParticle()public
String getScreenEffect()public
TimeColorAlpha[] getScreenEffectColors()public
TimeColorAlpha[] getSkyBottomColors()public
TimeColorAlpha[] getSkySunsetColors()public
TimeColorAlpha[] getSkyTopColors()public
String getStars()public
TimeColor[] getSunColors()public
TimeColorAlpha[] getSunGlowColors()public
TimeFloat[] getSunScales()public
TimeColor[] getSunlightColors()public
TimeFloat[] getSunlightDampingMultiplier()public
TimeColor[] getWaterTints()publicstatic
Map<Float, ColorAlpha> toColorAlphaMap(TimeColorAlpha[] timeColorAlpha)@Nonnull
publicstatic
Map<Float, Color> toColorMap(TimeColor[] timeColor)@Nonnull
publicstatic
Map<Float, Float> toFloatMap(TimeFloat[] timeFloat)@Nonnull
public
com.hypixel.hytale.protocol.Weather toPacket()@Nonnull
public
String toString()@Nonnull@Override
publicstatic
Map<Integer, String> toStringMap(DayTexture[] dayTexture)@Nonnull
Fields
Protected Fields (26)
protected
Cloud[] cloudsprotected
TimeColor[] colorFiltersprotected
AssetExtraInfo.Data dataprotected
TimeColor[] fogColorsprotected
TimeFloat[] fogDensitiesprotected
float[] fogDistanceprotected
TimeFloat[] fogHeightFalloffsprotected
FogOptions fogOptionsprotected
String idprotected
TimeColorAlpha[] moonColorsprotected
TimeColorAlpha[] moonGlowColorsprotected
TimeFloat[] moonScalesprotected
DayTexture[] moonsprotected
WeatherParticle particleprotected
String screenEffectprotected
TimeColorAlpha[] screenEffectColorsprotected
TimeColorAlpha[] skyBottomColorsprotected
TimeColorAlpha[] skySunsetColorsprotected
TimeColorAlpha[] skyTopColorsprotected
String starsprotected
TimeColor[] sunColorsprotected
TimeColorAlpha[] sunGlowColorsprotected
TimeFloat[] sunScalesprotected
TimeColor[] sunlightColorsprotected
TimeFloat[] sunlightDampingMultiplierprotected
TimeColor[] waterTintsPrivate/Package Fields (2)
private
AssetStore<String, Weather, IndexedLookupTableAssetMap<String, Weather>> ASSET_STOREprivate
SoftReference<com.hypixel.hytale.protocol.Weather> cachedPacket