Package net.minecraft.network
Class PacketEncoder
java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Mappings:
Namespace Name official qzintermediary net/minecraft/class_2545named net/minecraft/network/PacketEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields -
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, allocateBuffer, isPreferDirect, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, 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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official aLqz;a:Lorg/slf4j/Logger;intermediary field_11721Lnet/minecraft/class_2545;field_11721:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/network/PacketEncoder;LOGGER:Lorg/slf4j/Logger;
-
side
- Mappings:
Namespace Name Mixin selector official bLqz;b:Lsp;intermediary field_11720Lnet/minecraft/class_2545;field_11720:Lnet/minecraft/class_2598;named sideLnet/minecraft/network/PacketEncoder;side:Lnet/minecraft/network/NetworkSide;
-
-
Constructor Details
-
PacketEncoder
- Mappings:
Namespace Name Mixin selector official <init>Lqz;<init>(Lsp;)Vintermediary <init>Lnet/minecraft/class_2545;<init>(Lnet/minecraft/class_2598;)Vnamed <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:
encodein classMessageToByteEncoder<Packet<?>>- Throws:
Exception- Mappings:
Namespace Name Mixin selector official aLqz;a(Lio/netty/channel/ChannelHandlerContext;Lso;Lio/netty/buffer/ByteBuf;)Vintermediary method_10838Lnet/minecraft/class_2545;method_10838(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Lio/netty/buffer/ByteBuf;)Vnamed encodeLnet/minecraft/network/PacketEncoder;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;Lio/netty/buffer/ByteBuf;)V
-