Package net.minecraft.network.handler
Class SizePrepender
java.lang.Object
- All Implemented Interfaces:
- ChannelHandler,- ChannelOutboundHandler
- Mappings:
- Namespace - Name - named - net/minecraft/network/handler/SizePrepender- intermediary - net/minecraft/class_2552- official - wj
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.netty.channel.ChannelHandlerChannelHandler.Sharable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe max length, in number of bytes, of the prepending size var int permitted.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidencode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) Methods inherited from class io.netty.handler.codec.MessageToByteEncoderacceptOutboundMessage, allocateBuffer, isPreferDirect, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapterbind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandlerexceptionCaught, handlerAdded, handlerRemoved
- 
Field Details- 
MAX_PREPEND_LENGTHpublic static final int MAX_PREPEND_LENGTHThe max length, in number of bytes, of the prepending size var int permitted. Has value 3.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_PREPEND_LENGTH- Lnet/minecraft/network/handler/SizePrepender;MAX_PREPEND_LENGTH:I- intermediary - field_33288- Lnet/minecraft/class_2552;field_33288:I- official - a- Lwj;a:I
 
 
- 
- 
Constructor Details- 
SizePrependerpublic SizePrepender()
 
- 
- 
Method Details- 
encodeprotected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) - Specified by:
- encodein class- MessageToByteEncoder<ByteBuf>
- Mappings:
- Namespace - Name - Mixin selector - named - encode- Lnet/minecraft/network/handler/SizePrepender;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V- intermediary - method_10840- Lnet/minecraft/class_2552;method_10840(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V- official - a- Lwj;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
 
 
-