Appease checkstyle

This commit is contained in:
Shane Freeder
2026-04-08 21:19:27 +01:00
parent 308ce6d992
commit 6f01587318
2 changed files with 7 additions and 1 deletions

View File

@@ -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;

View File

@@ -50,6 +50,13 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder<ByteBuf> {
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;