1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 12:25:14 +00:00
Files
bedrock-protocol-docs/json/NetworkSettingsPacket.json

69 lines
2.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1064173480",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"2967987247": {
"title": "NetworkSettingsPacketPayload",
"type": "object",
"properties": {
"Client Throttle Enabled": {
"type": "boolean",
"x-ordinal-index": 2
},
"Client Throttle Scalar": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 4
},
"Client Throttle Threshold": {
"type": "integer",
"x-underlying-type": "uint8",
"x-ordinal-index": 3
},
"Compression Threshold": {
"description": "Determines the smallest size of raw network payload to compress.\nNOTE: 0 is disable compression, 1 is compress everything 1 byte or larger (so everything)",
"type": "integer",
"x-underlying-type": "uint16",
"x-ordinal-index": 0
},
"CompressionAlgorithm": {
"title": "PacketCompressionAlgorithm",
"type": "string",
"enum": [
"ZLib",
"Snappy",
"None"
],
"x-underlying-type": "uint16",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 1
}
},
"required": [
"Client Throttle Enabled",
"Client Throttle Scalar",
"Client Throttle Threshold",
"Compression Threshold",
"CompressionAlgorithm"
]
}
},
"title": "NetworkSettingsPacket",
"description": "Sends tunable options from host to client (compression threshold and algorithm)",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/2967987247",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 143,
"[cereal:packet_details]": ""
}
}