Class SizePrepender

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

@Sharable public class SizePrepender extends MessageToByteEncoder<ByteBuf>
Mappings:
Namespace Name
named net/minecraft/network/handler/SizePrepender
intermediary net/minecraft/class_2552
official xp
  • Field Details

    • MAX_PREPEND_LENGTH

      public static final int MAX_PREPEND_LENGTH
      The 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 Lxp;a:I
  • Constructor Details

    • SizePrepender

      public SizePrepender()
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, ByteBuf byteBuf2)
      Specified by:
      encode in 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 Lxp;a(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V