mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-04-19 19:08:16 +02:00
Appease checkstyle
This commit is contained in:
@@ -38,7 +38,6 @@ import com.velocitypowered.proxy.connection.client.InitialLoginSessionHandler;
|
|||||||
import com.velocitypowered.proxy.connection.client.StatusSessionHandler;
|
import com.velocitypowered.proxy.connection.client.StatusSessionHandler;
|
||||||
import com.velocitypowered.proxy.network.Connections;
|
import com.velocitypowered.proxy.network.Connections;
|
||||||
import com.velocitypowered.proxy.protocol.MinecraftPacket;
|
import com.velocitypowered.proxy.protocol.MinecraftPacket;
|
||||||
import com.velocitypowered.proxy.protocol.ProtocolUtils;
|
|
||||||
import com.velocitypowered.proxy.protocol.StateRegistry;
|
import com.velocitypowered.proxy.protocol.StateRegistry;
|
||||||
import com.velocitypowered.proxy.protocol.VelocityConnectionEvent;
|
import com.velocitypowered.proxy.protocol.VelocityConnectionEvent;
|
||||||
import com.velocitypowered.proxy.protocol.netty.MinecraftCipherDecoder;
|
import com.velocitypowered.proxy.protocol.netty.MinecraftCipherDecoder;
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder<ByteBuf> {
|
|||||||
private int threshold;
|
private int threshold;
|
||||||
private final VelocityCompressor compressor;
|
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) {
|
public MinecraftCompressDecoder(int threshold, VelocityCompressor compressor, ProtocolUtils.Direction direction) {
|
||||||
this.threshold = threshold;
|
this.threshold = threshold;
|
||||||
this.compressor = compressor;
|
this.compressor = compressor;
|
||||||
|
|||||||
Reference in New Issue
Block a user