Class PacketValidator

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, ChannelOutboundHandler

public class PacketValidator extends MessageToMessageCodec<Packet<?>,Packet<?>>
Mappings:
Namespace Name
official st
intermediary net/minecraft/class_8699
named net/minecraft/network/handler/PacketValidator
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lst;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

      private final AttributeKey<NetworkState.PacketHandler<?>> receivingSideKey
      Mappings:
      Namespace Name Mixin selector
      official b Lst;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

      private final AttributeKey<NetworkState.PacketHandler<?>> sendingSideKey
      Mappings:
      Namespace Name Mixin selector
      official c Lst;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> Lst;<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 Lst;a(Lio/netty/channel/ChannelHandlerContext;Lvd;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 class MessageToMessageCodec<Packet<?>,Packet<?>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lst;a(Lio/netty/channel/ChannelHandlerContext;Lvd;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 class MessageToMessageCodec<Packet<?>,Packet<?>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official b Lst;b(Lio/netty/channel/ChannelHandlerContext;Lvd;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