0x46 S46PacketSetCompressionLevel

Changes the compression threshold mid-game. Same as S03 but for PLAY state.

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S46PacketSetCompressionLevel.java
connectioncompression

Fields

FieldTypeDescription
thresholdVarIntNew compression threshold

Wire Encoding

FieldTypeNotes
ThresholdVarInt-1 = disable

MCP References

MCPNetHandlerPlayClient.handleSetCompressionLevel()

Handler Interface

HNDINetHandlerPlayClient

implementation Implementation Cases

Disabler

Detect compression changes.

Vanilla hook: EventReceivePacket
← Back to all packets