Package net.minecraft.network
Class PacketEncoder
java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Mappings:
Namespace Name official evintermediary net/minecraft/class_1974named net/minecraft/network/PacketEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NetworkSideprivate static final Loggerprivate static final Marker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidencode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, ByteBuf byteBuf) Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, 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 aLev;a:Lorg/apache/logging/log4j/Logger;intermediary field_8469Lnet/minecraft/class_1974;field_8469:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/network/PacketEncoder;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MARKER
- Mappings:
Namespace Name Mixin selector official bLev;b:Lorg/apache/logging/log4j/Marker;intermediary field_8470Lnet/minecraft/class_1974;field_8470:Lorg/apache/logging/log4j/Marker;named MARKERLnet/minecraft/network/PacketEncoder;MARKER:Lorg/apache/logging/log4j/Marker;
-
field_8471
- Mappings:
Namespace Name Mixin selector official cLev;c:Lfn;intermediary field_8471Lnet/minecraft/class_1974;field_8471:Lnet/minecraft/class_2569;named field_8471Lnet/minecraft/network/PacketEncoder;field_8471: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 aLev;a(Lio/netty/channel/ChannelHandlerContext;Lfm;Lio/netty/buffer/ByteBuf;)Vintermediary method_7453Lnet/minecraft/class_1974;method_7453(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_700;Lio/netty/buffer/ByteBuf;)Vnamed encodeLnet/minecraft/network/PacketEncoder;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;Lio/netty/buffer/ByteBuf;)V
-