classpublicPriority 3
Environment
com.hypixel.hytale.server.core.asset.type.environment.config.Environment
implements JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Environment>>, NetworkSerializable
14
Methods
14
Public Methods
8
Fields
3
Constructors
Constants
Integer[]HOURS= new Integer[HOURS_PER_DAY]
intHOURS_PER_DAY= (int)ChronoUnit.DAYS.getDuration().toHours()
intMAX_KEY_HOUR= HOURS_PER_DAY - 1
intUNKNOWN_ID= 0
Constructors
package-private
Environment()protected
Environment()public
Environment(String id, Color waterTint, Map<String, FluidParticle> fluidParticles, Int2ObjectMap<IWeightedMap<WeatherForecast>> weatherForecasts, double spawnDensity)Methods
Public Methods (14)
public
boolean equals(Object o)@Override
publicstatic
IndexedLookupTableAssetMap<String, Environment> getAssetMap()publicstatic
AssetStore<String, Environment, IndexedLookupTableAssetMap<String, Environment>> getAssetStore()public
Map<String, FluidParticle> getFluidParticles()public
String getId()publicstatic
int getIndexOrUnknown(String id, String message, Object[] params)public
double getSpawnDensity()public
Color getWaterTint()public
IWeightedMap<WeatherForecast> getWeatherForecast(int hour)public
Int2ObjectMap<IWeightedMap<WeatherForecast>> getWeatherForecasts()public
int hashCode()@Override
public
boolean isBlockModificationAllowed()public
WorldEnvironment toPacket()@Nonnull
public
String toString()@Nonnull@Override
Fields
Protected Fields (6)
protected
boolean blockModificationAllowedprotected
AssetExtraInfo.Data dataprotected
String idprotected
double spawnDensityprotected
Color waterTintprotected
Int2ObjectMap<IWeightedMap<WeatherForecast>> weatherForecastsPrivate/Package Fields (2)
private
AssetStore<String, Environment, IndexedLookupTableAssetMap<String, Environment>> ASSET_STOREprivate
SoftReference<WorldEnvironment> cachedPacket