类 SizePrepender
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<ByteBuf>
-
- net.minecraft.network.SizePrepender
-
- 所有已实现的接口:
ChannelHandler,ChannelOutboundHandler
@Sharable public class SizePrepender extends MessageToByteEncoder<ByteBuf>
- Mappings:
Namespace Name official oiintermediary net/minecraft/class_2552named net/minecraft/network/SizePrepender
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intMAX_PREPEND_LENGTHThe max length, in number of bytes, of the prepending size var int permitted.
-
构造器概要
构造器 构造器 说明 SizePrepender()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidencode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)-
从类继承的方法 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
-
-
-
-
字段详细资料
-
MAX_PREPEND_LENGTH
private static final int MAX_PREPEND_LENGTH
The max length, in number of bytes, of the prepending size var int permitted. Has value 3.- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLoi;a:Iintermediary field_33288Lnet/minecraft/class_2552;field_33288:Inamed MAX_PREPEND_LENGTHLnet/minecraft/network/SizePrepender;MAX_PREPEND_LENGTH:I
-
-
方法详细资料
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)
- 指定者:
encode在类中MessageToByteEncoder<ByteBuf>- Mappings:
Namespace Name Mixin selector official aLoi;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vintermediary method_10840Lnet/minecraft/class_2552;method_10840(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Vnamed encodeLnet/minecraft/network/SizePrepender;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-
-