From 6f01587318856e8133d871b7c42dded802b89955 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 8 Apr 2026 21:19:27 +0100 Subject: [PATCH] Appease checkstyle --- .../proxy/connection/MinecraftConnection.java | 1 - .../proxy/protocol/netty/MinecraftCompressDecoder.java | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java index 151cbd303..c455e4271 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java @@ -38,7 +38,6 @@ import com.velocitypowered.proxy.connection.client.InitialLoginSessionHandler; import com.velocitypowered.proxy.connection.client.StatusSessionHandler; import com.velocitypowered.proxy.network.Connections; import com.velocitypowered.proxy.protocol.MinecraftPacket; -import com.velocitypowered.proxy.protocol.ProtocolUtils; import com.velocitypowered.proxy.protocol.StateRegistry; import com.velocitypowered.proxy.protocol.VelocityConnectionEvent; import com.velocitypowered.proxy.protocol.netty.MinecraftCipherDecoder; diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java index edd0f4c22..2528c0fd1 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java @@ -50,6 +50,13 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder { private int threshold; private final VelocityCompressor compressor; + /** + * Creates a new {@code MinecraftCompressDecoder} with the specified compression {@code threshold}. + * + * @param threshold the threshold for compression. Packets with uncompressed size below this threshold will not be compressed. + * @param compressor the compressor instance to use + * @param direction the direction of the packets being decoded + */ public MinecraftCompressDecoder(int threshold, VelocityCompressor compressor, ProtocolUtils.Direction direction) { this.threshold = threshold; this.compressor = compressor;