Package net.minecraft.network
Class PacketEncoder
java.lang.Object
- All Implemented Interfaces:
ChannelHandler
,ChannelOutboundHandler
public class PacketEncoder extends MessageToByteEncoder<Packet<?>>
- Mappings:
Namespace Name official ny
intermediary net/minecraft/class_2545
named net/minecraft/network/PacketEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PacketEncoder(NetworkSide side)
-
Method Summary
Modifier and Type Method Description protected void
encode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, ByteBuf byteBuf)
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
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lny;a:Lorg/apache/logging/log4j/Logger;
intermediary field_11721
Lnet/minecraft/class_2545;field_11721:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/network/PacketEncoder;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MARKER
- Mappings:
Namespace Name Mixin selector official b
Lny;b:Lorg/apache/logging/log4j/Marker;
intermediary field_11719
Lnet/minecraft/class_2545;field_11719:Lorg/apache/logging/log4j/Marker;
named MARKER
Lnet/minecraft/network/PacketEncoder;MARKER:Lorg/apache/logging/log4j/Marker;
-
side
- Mappings:
Namespace Name Mixin selector official c
Lny;c:Lpb;
intermediary field_11720
Lnet/minecraft/class_2545;field_11720:Lnet/minecraft/class_2598;
named side
Lnet/minecraft/network/PacketEncoder;side:Lnet/minecraft/network/NetworkSide;
-
-
Constructor Details
-
PacketEncoder
- Mappings:
Namespace Name Mixin selector official <init>
Lny;<init>(Lpb;)V
intermediary <init>
Lnet/minecraft/class_2545;<init>(Lnet/minecraft/class_2598;)V
named <init>
Lnet/minecraft/network/PacketEncoder;<init>(Lnet/minecraft/network/NetworkSide;)V
-
-
Method Details
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, ByteBuf byteBuf) throws Exception- Specified by:
encode
in classMessageToByteEncoder<Packet<?>>
- Throws:
Exception
- Mappings:
Namespace Name Mixin selector official a
Lny;a(Lio/netty/channel/ChannelHandlerContext;Lpa;Lio/netty/buffer/ByteBuf;)V
intermediary method_10838
Lnet/minecraft/class_2545;method_10838(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Lio/netty/buffer/ByteBuf;)V
named encode
Lnet/minecraft/network/PacketEncoder;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;Lio/netty/buffer/ByteBuf;)V
-