Package net.minecraft.network.handler
Class PacketValidator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.codec.MessageToMessageCodec<Packet<?>,Packet<?>>
net.minecraft.network.handler.PacketValidator
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
,ChannelOutboundHandler
- Mappings:
Namespace Name official un
intermediary net/minecraft/class_8699
named net/minecraft/network/handler/PacketValidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Logger
private final AttributeKey<NetworkState.PacketHandler<?>>
private final AttributeKey<NetworkState.PacketHandler<?>>
-
Constructor Summary
ConstructorDescriptionPacketValidator
(AttributeKey<NetworkState.PacketHandler<?>> receivingSideKey, AttributeKey<NetworkState.PacketHandler<?>> sendingSideKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decode
(ChannelHandlerContext channelHandlerContext, Packet<?> packet, List<Object> list) protected void
encode
(ChannelHandlerContext channelHandlerContext, Packet<?> packet, List<Object> list) private static void
handle
(ChannelHandlerContext context, Packet<?> packet, List<Object> packets, AttributeKey<NetworkState.PacketHandler<?>> key) Methods inherited from class io.netty.handler.codec.MessageToMessageCodec
acceptInboundMessage, acceptOutboundMessage, channelRead, write
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, 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
handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lun;a:Lorg/slf4j/Logger;
intermediary field_45679
Lnet/minecraft/class_8699;field_45679:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/network/handler/PacketValidator;LOGGER:Lorg/slf4j/Logger;
-
receivingSideKey
- Mappings:
Namespace Name Mixin selector official b
Lun;b:Lio/netty/util/AttributeKey;
intermediary field_45680
Lnet/minecraft/class_8699;field_45680:Lio/netty/util/AttributeKey;
named receivingSideKey
Lnet/minecraft/network/handler/PacketValidator;receivingSideKey:Lio/netty/util/AttributeKey;
-
sendingSideKey
- Mappings:
Namespace Name Mixin selector official c
Lun;c:Lio/netty/util/AttributeKey;
intermediary field_45681
Lnet/minecraft/class_8699;field_45681:Lio/netty/util/AttributeKey;
named sendingSideKey
Lnet/minecraft/network/handler/PacketValidator;sendingSideKey:Lio/netty/util/AttributeKey;
-
-
Constructor Details
-
PacketValidator
public PacketValidator(AttributeKey<NetworkState.PacketHandler<?>> receivingSideKey, AttributeKey<NetworkState.PacketHandler<?>> sendingSideKey) - Mappings:
Namespace Name Mixin selector official <init>
Lun;<init>(Lio/netty/util/AttributeKey;Lio/netty/util/AttributeKey;)V
intermediary <init>
Lnet/minecraft/class_8699;<init>(Lio/netty/util/AttributeKey;Lio/netty/util/AttributeKey;)V
named <init>
Lnet/minecraft/network/handler/PacketValidator;<init>(Lio/netty/util/AttributeKey;Lio/netty/util/AttributeKey;)V
-
-
Method Details
-
handle
private static void handle(ChannelHandlerContext context, Packet<?> packet, List<Object> packets, AttributeKey<NetworkState.PacketHandler<?>> key) - Mappings:
Namespace Name Mixin selector official a
Lun;a(Lio/netty/channel/ChannelHandlerContext;Lxf;Ljava/util/List;Lio/netty/util/AttributeKey;)V
intermediary method_53009
Lnet/minecraft/class_8699;method_53009(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Ljava/util/List;Lio/netty/util/AttributeKey;)V
named handle
Lnet/minecraft/network/handler/PacketValidator;handle(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Ljava/util/List;Lio/netty/util/AttributeKey;)V
-
decode
protected void decode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, List<Object> list) throws Exception - Specified by:
decode
in classMessageToMessageCodec<Packet<?>,
Packet<?>> - Throws:
Exception
- Mappings:
Namespace Name Mixin selector official a
Lun;a(Lio/netty/channel/ChannelHandlerContext;Lxf;Ljava/util/List;)V
intermediary method_53008
Lnet/minecraft/class_8699;method_53008(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Ljava/util/List;)V
named decode
Lnet/minecraft/network/handler/PacketValidator;decode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Ljava/util/List;)V
-
encode
protected void encode(ChannelHandlerContext channelHandlerContext, Packet<?> packet, List<Object> list) throws Exception - Specified by:
encode
in classMessageToMessageCodec<Packet<?>,
Packet<?>> - Throws:
Exception
- Mappings:
Namespace Name Mixin selector official b
Lun;b(Lio/netty/channel/ChannelHandlerContext;Lxf;Ljava/util/List;)V
intermediary method_53010
Lnet/minecraft/class_8699;method_53010(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;Ljava/util/List;)V
named encode
Lnet/minecraft/network/handler/PacketValidator;encode(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;Ljava/util/List;)V
-