Package net.minecraft.network
Class PacketEncoder
java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
public class PacketEncoder extends MessageToByteEncoder<Packet>
- Mappings:
Namespace Name official eointermediary net/minecraft/class_1437named net/minecraft/network/PacketEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields Modifier and Type Field Description private NetworkSidefield_5994private static LoggerLOGGERprivate static MarkerMARKER -
Constructor Summary
Constructors Constructor Description PacketEncoder(NetworkSide networkSide) -
Method Summary
Modifier and Type Method Description protected voidencode(ChannelHandlerContext channelHandlerContext, Packet packet, ByteBuf byteBuf)Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeo;a:Lorg/apache/logging/log4j/Logger;intermediary field_5992Lnet/minecraft/class_1437;field_5992:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/network/PacketEncoder;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MARKER
- Mappings:
Namespace Name Mixin selector official bLeo;b:Lorg/apache/logging/log4j/Marker;intermediary field_5993Lnet/minecraft/class_1437;field_5993:Lorg/apache/logging/log4j/Marker;named MARKERLnet/minecraft/network/PacketEncoder;MARKER:Lorg/apache/logging/log4j/Marker;
-
field_5994
- Mappings:
Namespace Name Mixin selector official cLeo;c:Lfg;intermediary field_5994Lnet/minecraft/class_1437;field_5994:Lnet/minecraft/class_1458;named field_5994Lnet/minecraft/network/PacketEncoder;field_5994:Lnet/minecraft/network/NetworkSide;
-
-
Constructor Details
-
PacketEncoder
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, Packet packet, ByteBuf byteBuf) throws Exception- Specified by:
encodein classMessageToByteEncoder<Packet>- Throws:
Exception- Mappings:
Namespace Name Mixin selector official aLeo;a(Lio/netty/channel/ChannelHandlerContext;Lff;Lio/netty/buffer/ByteBuf;)Vintermediary method_5147Lnet/minecraft/class_1437;method_5147(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_1457;Lio/netty/buffer/ByteBuf;)Vnamed encodeLnet/minecraft/network/PacketEncoder;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;Lio/netty/buffer/ByteBuf;)V
-