Class NetworkState.PacketHandler<T extends PacketListener>

java.lang.Object
net.minecraft.network.NetworkState.PacketHandler<T>
All Implemented Interfaces:
PacketBundleHandler.BundlerGetter
Enclosing class:
NetworkState

public static class NetworkState.PacketHandler<T extends PacketListener> extends Object implements PacketBundleHandler.BundlerGetter
Mappings:
Namespace Name
official uh$a
intermediary net/minecraft/class_2539$class_8698
named net/minecraft/network/NetworkState$PacketHandler
  • Field Details

    • state

      private final NetworkState state
      Mappings:
      Namespace Name Mixin selector
      official a Luh$a;a:Luh;
      intermediary field_45672 Lnet/minecraft/class_2539$class_8698;field_45672:Lnet/minecraft/class_2539;
      named state Lnet/minecraft/network/NetworkState$PacketHandler;state:Lnet/minecraft/network/NetworkState;
    • side

      private final NetworkSide side
      Mappings:
      Namespace Name Mixin selector
      official b Luh$a;b:Lxg;
      intermediary field_45673 Lnet/minecraft/class_2539$class_8698;field_45673:Lnet/minecraft/class_2598;
      named side Lnet/minecraft/network/NetworkState$PacketHandler;side:Lnet/minecraft/network/NetworkSide;
    • backingHandler

      private final NetworkState.InternalPacketHandler<T extends PacketListener> backingHandler
      Mappings:
      Namespace Name Mixin selector
      official c Luh$a;c:Luh$b;
      intermediary field_45674 Lnet/minecraft/class_2539$class_8698;field_45674:Lnet/minecraft/class_2539$class_4532;
      named backingHandler Lnet/minecraft/network/NetworkState$PacketHandler;backingHandler:Lnet/minecraft/network/NetworkState$InternalPacketHandler;
  • Constructor Details

    • PacketHandler

      public PacketHandler(NetworkState state, NetworkSide side, NetworkState.InternalPacketHandler<T> backingHandler)
      Mappings:
      Namespace Name Mixin selector
      official <init> Luh$a;<init>(Luh;Lxg;Luh$b;)V
      intermediary <init> Lnet/minecraft/class_2539$class_8698;<init>(Lnet/minecraft/class_2539;Lnet/minecraft/class_2598;Lnet/minecraft/class_2539$class_4532;)V
      named <init> Lnet/minecraft/network/NetworkState$PacketHandler;<init>(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/NetworkState$InternalPacketHandler;)V
  • Method Details

    • getState

      public NetworkState getState()
      Mappings:
      Namespace Name Mixin selector
      official a Luh$a;a()Luh;
      intermediary method_52922 Lnet/minecraft/class_2539$class_8698;method_52922()Lnet/minecraft/class_2539;
      named getState Lnet/minecraft/network/NetworkState$PacketHandler;getState()Lnet/minecraft/network/NetworkState;
    • getSide

      public NetworkSide getSide()
      Mappings:
      Namespace Name Mixin selector
      official b Luh$a;b()Lxg;
      intermediary method_52926 Lnet/minecraft/class_2539$class_8698;method_52926()Lnet/minecraft/class_2598;
      named getSide Lnet/minecraft/network/NetworkState$PacketHandler;getSide()Lnet/minecraft/network/NetworkSide;
    • getId

      public int getId(Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      official a Luh$a;a(Lxf;)I
      intermediary method_52925 Lnet/minecraft/class_2539$class_8698;method_52925(Lnet/minecraft/class_2596;)I
      named getId Lnet/minecraft/network/NetworkState$PacketHandler;getId(Lnet/minecraft/network/packet/Packet;)I
    • getBundler

      public PacketBundleHandler getBundler()
      Specified by:
      getBundler in interface PacketBundleHandler.BundlerGetter
      Mappings:
      Namespace Name Mixin selector
      official c Lxe$b;c()Lxe;
      intermediary method_48312 Lnet/minecraft/class_8039$class_8041;method_48312()Lnet/minecraft/class_8039;
      named getBundler Lnet/minecraft/network/handler/PacketBundleHandler$BundlerGetter;getBundler()Lnet/minecraft/network/handler/PacketBundleHandler;
    • getPacketIdToPacketMap

      Int2ObjectMap<Class<? extends Packet<?>>> getPacketIdToPacketMap()
      Mappings:
      Namespace Name Mixin selector
      official d Luh$a;d()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary method_52928 Lnet/minecraft/class_2539$class_8698;method_52928()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named getPacketIdToPacketMap Lnet/minecraft/network/NetworkState$PacketHandler;getPacketIdToPacketMap()Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • createPacket

      @Nullable public @Nullable Packet<?> createPacket(int id, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Luh$a;a(ILui;)Lxf;
      intermediary method_52923 Lnet/minecraft/class_2539$class_8698;method_52923(ILnet/minecraft/class_2540;)Lnet/minecraft/class_2596;
      named createPacket Lnet/minecraft/network/NetworkState$PacketHandler;createPacket(ILnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/packet/Packet;
    • canHandle

      public boolean canHandle(Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      official b Luh$a;b(Lxf;)Z
      intermediary method_52927 Lnet/minecraft/class_2539$class_8698;method_52927(Lnet/minecraft/class_2596;)Z
      named canHandle Lnet/minecraft/network/NetworkState$PacketHandler;canHandle(Lnet/minecraft/network/packet/Packet;)Z