public class LoginCompressionS2CPacket extends Object implements Packet<ClientLoginPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
compressionThreshold |
Constructor and Description |
---|
LoginCompressionS2CPacket() |
LoginCompressionS2CPacket(int compressionThreshold) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientLoginPacketListener clientLoginPacketListener) |
int |
getCompressionThreshold() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public LoginCompressionS2CPacket()
public LoginCompressionS2CPacket(int compressionThreshold)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientLoginPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientLoginPacketListener>
IOException
public void apply(ClientLoginPacketListener clientLoginPacketListener)
apply
in interface Packet<ClientLoginPacketListener>
@Environment(value=CLIENT) public int getCompressionThreshold()