struct ClientboundAttributeLayerSync {
tagged case index (0=UpdateAttributeLayersData, 1=UpdateAttributeLayerSettingsData, 2=UpdateEnvironmentAttributesData, 3=RemoveEnvironmentAttributesData) Data;
}
Structure
Field
Type
Description
Data
tagged case index (0=UpdateAttributeLayersData, 1=UpdateAttributeLayerSettingsData, 2=UpdateEnvironmentAttributesData, 3=RemoveEnvironmentAttributesData)
Variant: an index selects the payload type — see the tables below.
Structure of UpdateAttributeLayersData
Field
Type
Description
Attribute Layers
varuint32 count + AttributeLayerData[]
Length-prefixed sequence.
Structure of UpdateAttributeLayerSettingsData
Field
Type
Description
Layer Name
string
Layer Dimension Id
DimensionType
Attribute Layer Settings
AttributeLayerSettings
Structure of UpdateEnvironmentAttributesData
Field
Type
Description
Layer Name
string
Layer Dimension Id
DimensionType
Attributes
varuint32 count + EnvironmentAttributeData[]
Length-prefixed sequence.
Structure of RemoveEnvironmentAttributesData
Field
Type
Description
Layer Name
string
Layer Dimension Id
DimensionType
Attributes
varuint32 count + string[]
Length-prefixed sequence.
Structure of AttributeLayerData
Field
Type
Description
Name
string
Noise Name
optional byte + string
Presence flag on the wire; value omitted when absent.
Dimension Id
DimensionType
Settings
AttributeLayerSettings
Attributes
varuint32 count + EnvironmentAttributeData[]
Length-prefixed sequence.
Structure of AttributeLayerSettings
Field
Type
Description
Priority
int32 (LE)
Weight
float32 (LE)
Enabled
bool
Transitions Paused
bool
Structure of EnvironmentAttributeData
Field
Type
Description
Name
string
From Attribute
optional byte + AttributeDataVariant
Presence flag on the wire; value omitted when absent.
Attribute
AttributeDataVariant
To Attribute
optional byte + AttributeDataVariant
Presence flag on the wire; value omitted when absent.