类 CompressionEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
net.minecraft.network.CompressionEncoder
- 所有已实现的接口:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
public class CompressionEncoder
extends io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
encode
(io.netty.channel.ChannelHandlerContext p_129452_, io.netty.buffer.ByteBuf p_129453_, io.netty.buffer.ByteBuf p_129454_) int
void
setThreshold
(int p_129450_) 从类继承的方法 io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
从类继承的方法 io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
字段详细资料
-
encodeBuf
private final byte[] encodeBuf -
deflater
-
threshold
private int threshold -
DISABLE_PACKET_DEBUG
private static final boolean DISABLE_PACKET_DEBUG -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
构造器详细资料
-
CompressionEncoder
public CompressionEncoder(int p_129448_)
-
-
方法详细资料
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext p_129452_, io.netty.buffer.ByteBuf p_129453_, io.netty.buffer.ByteBuf p_129454_) - 指定者:
encode
在类中io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
-
getThreshold
public int getThreshold() -
setThreshold
public void setThreshold(int p_129450_)
-