Weather
Package: com.hypixel.hytale.protocol
public class WeatherProtocol data structure in the World/Environment group.
Fields
Section titled “Fields”| Type | Name | Nullable | Description |
|---|---|---|---|
String | id | Yes | |
int``[] | tagIndexes | Yes | |
String | stars | Yes | |
Map<``Integer``, ``String``> | moons | Yes | |
Cloud[] | clouds | Yes | |
Map<``Float``, ``Float``> | sunlightDampingMultiplier | Yes | |
Map<``Float``, Color> | sunlightColors | Yes | |
Map<``Float``, ColorAlpha> | skyTopColors | Yes | |
Map<``Float``, ColorAlpha> | skyBottomColors | Yes | |
Map<``Float``, ColorAlpha> | skySunsetColors | Yes | |
Map<``Float``, Color> | sunColors | Yes | |
Map<``Float``, ``Float``> | sunScales | Yes | |
Map<``Float``, ColorAlpha> | sunGlowColors | Yes | |
Map<``Float``, ColorAlpha> | moonColors | Yes | |
Map<``Float``, ``Float``> | moonScales | Yes | |
Map<``Float``, ColorAlpha> | moonGlowColors | Yes | |
Map<``Float``, Color> | fogColors | Yes | |
Map<``Float``, ``Float``> | fogHeightFalloffs | Yes | |
Map<``Float``, ``Float``> | fogDensities | Yes | |
String | screenEffect | Yes | |
Map<``Float``, ColorAlpha> | screenEffectColors | Yes | |
Map<``Float``, Color> | colorFilters | Yes | |
Map<``Float``, Color> | waterTints | Yes | |
| WeatherParticle | particle | Yes | |
| NearFar | fog | Yes | |
| FogOptions | fogOptions | Yes |
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
NULLABLE_BIT_FIELD_SIZE | 4 |
FIXED_BLOCK_SIZE | 30 |
VARIABLE_FIELD_COUNT | 24 |
VARIABLE_BLOCK_START | 126 |
MAX_SIZE | 1,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.
Methods
Section titled “Methods”@Nonnullpublic 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.
@Overridepublic int computeSize()Returns the serialized size in bytes.
Related Types
Section titled “Related Types”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.