Skip to content

Weather

Package: com.hypixel.hytale.protocol

public class Weather

Protocol data structure in the World/Environment group.

TypeNameNullableDescription
StringidYes
int``[]tagIndexesYes
StringstarsYes
Map<``Integer``, ``String``>moonsYes
Cloud[]cloudsYes
Map<``Float``, ``Float``>sunlightDampingMultiplierYes
Map<``Float``, Color>sunlightColorsYes
Map<``Float``, ColorAlpha>skyTopColorsYes
Map<``Float``, ColorAlpha>skyBottomColorsYes
Map<``Float``, ColorAlpha>skySunsetColorsYes
Map<``Float``, Color>sunColorsYes
Map<``Float``, ``Float``>sunScalesYes
Map<``Float``, ColorAlpha>sunGlowColorsYes
Map<``Float``, ColorAlpha>moonColorsYes
Map<``Float``, ``Float``>moonScalesYes
Map<``Float``, ColorAlpha>moonGlowColorsYes
Map<``Float``, Color>fogColorsYes
Map<``Float``, ``Float``>fogHeightFalloffsYes
Map<``Float``, ``Float``>fogDensitiesYes
StringscreenEffectYes
Map<``Float``, ColorAlpha>screenEffectColorsYes
Map<``Float``, Color>colorFiltersYes
Map<``Float``, Color>waterTintsYes
WeatherParticleparticleYes
NearFarfogYes
FogOptionsfogOptionsYes
ConstantValue
NULLABLE_BIT_FIELD_SIZE4
FIXED_BLOCK_SIZE30
VARIABLE_FIELD_COUNT24
VARIABLE_BLOCK_START126
MAX_SIZE1,677,721,600

Binary layout: 4 null-bit bytes + 30 bytes of fixed fields + 24 variable-length fields (4-byte offset slots). All multi-byte primitives use little-endian encoding.

@Nonnull
public static Weather deserialize(@Nonnull ByteBuf buf, int offset)

Deserializes a Weather from the given buffer at the specified offset.

public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)

Returns the total number of bytes consumed by this Weather starting at the given offset.

public void serialize(@Nonnull ByteBuf buf)

Serializes this Weather into the given buffer.

@Override
public int computeSize()

Returns the serialized size in bytes.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.