Package net.minecraft.network
Class SizePrepender
java.lang.Object
- All Implemented Interfaces:
ChannelHandler
,ChannelOutboundHandler
- Mappings:
Namespace Name official re
intermediary net/minecraft/class_2552
named net/minecraft/network/SizePrepender
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
The max length, in number of bytes, of the prepending size var int permitted. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
encode
(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
MAX_PREPEND_LENGTH
private 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 official a
Lre;a:I
intermediary field_33288
Lnet/minecraft/class_2552;field_33288:I
named MAX_PREPEND_LENGTH
Lnet/minecraft/network/SizePrepender;MAX_PREPEND_LENGTH:I
-
-
Constructor Details
-
SizePrepender
public SizePrepender()
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2) - Specified by:
encode
in classMessageToByteEncoder<ByteBuf>
- Mappings:
Namespace Name Mixin selector official a
Lre;a(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
named encode
Lnet/minecraft/network/SizePrepender;encode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
-