Package net.minecraft.network.handler
Class SplitterHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.handler.SplitterHandler
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
- Mappings:
Namespace Name official te
intermediary net/minecraft/class_2550
named net/minecraft/network/handler/SplitterHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder
ByteToMessageDecoder.Cumulator
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final @Nullable PacketSizeLogger
private final ByteBuf
Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decode
(ChannelHandlerContext ctx, ByteBuf buf, List<Object> bytes) protected void
handlerRemoved0
(ChannelHandlerContext context) private static boolean
shouldSplit
(ByteBuf source, ByteBuf sizeBuf) Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, 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
handlerAdded
-
Field Details
-
LENGTH_BYTES
private static final int LENGTH_BYTES- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lte;a:I
intermediary field_45690
Lnet/minecraft/class_2550;field_45690:I
named LENGTH_BYTES
Lnet/minecraft/network/handler/SplitterHandler;LENGTH_BYTES:I
-
reusableBuf
- Mappings:
Namespace Name Mixin selector official b
Lte;b:Lio/netty/buffer/ByteBuf;
intermediary field_45691
Lnet/minecraft/class_2550;field_45691:Lio/netty/buffer/ByteBuf;
named reusableBuf
Lnet/minecraft/network/handler/SplitterHandler;reusableBuf:Lio/netty/buffer/ByteBuf;
-
packetSizeLogger
- Mappings:
Namespace Name Mixin selector official c
Lte;c:Lse;
intermediary field_45956
Lnet/minecraft/class_2550;field_45956:Lnet/minecraft/class_8762;
named packetSizeLogger
Lnet/minecraft/network/handler/SplitterHandler;packetSizeLogger:Lnet/minecraft/network/handler/PacketSizeLogger;
-
-
Constructor Details
-
SplitterHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lte;<init>(Lse;)V
intermediary <init>
Lnet/minecraft/class_2550;<init>(Lnet/minecraft/class_8762;)V
named <init>
Lnet/minecraft/network/handler/SplitterHandler;<init>(Lnet/minecraft/network/handler/PacketSizeLogger;)V
-
-
Method Details
-
handlerRemoved0
- Overrides:
handlerRemoved0
in classByteToMessageDecoder
- Mappings:
Namespace Name Mixin selector official handlerRemoved0
Lte;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
intermediary handlerRemoved0
Lnet/minecraft/class_2550;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
named handlerRemoved0
Lnet/minecraft/network/handler/SplitterHandler;handlerRemoved0(Lio/netty/channel/ChannelHandlerContext;)V
-
shouldSplit
- Mappings:
Namespace Name Mixin selector official a
Lte;a(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
intermediary method_53022
Lnet/minecraft/class_2550;method_53022(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
named shouldSplit
Lnet/minecraft/network/handler/SplitterHandler;shouldSplit(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
-
decode
- Specified by:
decode
in classByteToMessageDecoder
- Mappings:
Namespace Name Mixin selector official decode
Lte;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
intermediary decode
Lnet/minecraft/class_2550;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
named decode
Lnet/minecraft/network/handler/SplitterHandler;decode(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
-