Enum NetworkState

java.lang.Object
java.lang.Enum<NetworkState>
net.minecraft.network.NetworkState
All Implemented Interfaces:
Serializable, Comparable<NetworkState>, java.lang.constant.Constable

public enum NetworkState
extends Enum<NetworkState>
Mappings:
Namespace Name
official nv
intermediary net/minecraft/class_2539
named net/minecraft/network/NetworkState
  • Enum Constant Details

    • HANDSHAKING

      public static final NetworkState HANDSHAKING
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a:Lnv;
      intermediary field_20590 Lnet/minecraft/class_2539;field_20590:Lnet/minecraft/class_2539;
      named HANDSHAKING Lnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
    • PLAY

      public static final NetworkState PLAY
      Mappings:
      Namespace Name Mixin selector
      official b Lnv;b:Lnv;
      intermediary field_20591 Lnet/minecraft/class_2539;field_20591:Lnet/minecraft/class_2539;
      named PLAY Lnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
    • STATUS

      public static final NetworkState STATUS
      Mappings:
      Namespace Name Mixin selector
      official c Lnv;c:Lnv;
      intermediary field_20592 Lnet/minecraft/class_2539;field_20592:Lnet/minecraft/class_2539;
      named STATUS Lnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
    • LOGIN

      public static final NetworkState LOGIN
      Mappings:
      Namespace Name Mixin selector
      official d Lnv;d:Lnv;
      intermediary field_20593 Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;
      named LOGIN Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
  • Field Details

    • STATES

      private static final NetworkState[] STATES
      Mappings:
      Namespace Name Mixin selector
      official e Lnv;e:[Lnv;
      intermediary field_11693 Lnet/minecraft/class_2539;field_11693:[Lnet/minecraft/class_2539;
      named STATES Lnet/minecraft/network/NetworkState;STATES:[Lnet/minecraft/network/NetworkState;
    • HANDLER_STATE_MAP

      private static final Map<Class<? extends Packet<?>>,​NetworkState> HANDLER_STATE_MAP
      Mappings:
      Namespace Name Mixin selector
      official f Lnv;f:Ljava/util/Map;
      intermediary field_11687 Lnet/minecraft/class_2539;field_11687:Ljava/util/Map;
      named HANDLER_STATE_MAP Lnet/minecraft/network/NetworkState;HANDLER_STATE_MAP:Ljava/util/Map;
    • stateId

      private final int stateId
      Mappings:
      Namespace Name Mixin selector
      official g Lnv;g:I
      intermediary field_20594 Lnet/minecraft/class_2539;field_20594:I
      named stateId Lnet/minecraft/network/NetworkState;stateId:I
    • packetHandlers

      private final Map<NetworkSide,​? extends NetworkState.PacketHandler<?>> packetHandlers
      Mappings:
      Namespace Name Mixin selector
      official h Lnv;h:Ljava/util/Map;
      intermediary field_20595 Lnet/minecraft/class_2539;field_20595:Ljava/util/Map;
      named packetHandlers Lnet/minecraft/network/NetworkState;packetHandlers:Ljava/util/Map;
  • Constructor Details

    • NetworkState

      private NetworkState​(int id, NetworkState.PacketHandlerInitializer packetHandlerInitializer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lnv;<init>(Ljava/lang/String;IILnv$b;)V
      intermediary <init> Lnet/minecraft/class_2539;<init>(Ljava/lang/String;IILnet/minecraft/class_2539$class_4533;)V
      named <init> Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;IILnet/minecraft/network/NetworkState$PacketHandlerInitializer;)V
  • Method Details

    • values

      public static NetworkState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NetworkState valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • createPacketHandlerInitializer

      private static NetworkState.PacketHandlerInitializer createPacketHandlerInitializer()
      Mappings:
      Namespace Name Mixin selector
      official b Lnv;b()Lnv$b;
      intermediary method_22308 Lnet/minecraft/class_2539;method_22308()Lnet/minecraft/class_2539$class_4533;
      named createPacketHandlerInitializer Lnet/minecraft/network/NetworkState;createPacketHandlerInitializer()Lnet/minecraft/network/NetworkState$PacketHandlerInitializer;
    • getPacketId

      @Nullable public Integer getPacketId​(NetworkSide side, Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a(Lpb;Lpa;)Ljava/lang/Integer;
      intermediary method_10781 Lnet/minecraft/class_2539;method_10781(Lnet/minecraft/class_2598;Lnet/minecraft/class_2596;)Ljava/lang/Integer;
      named getPacketId Lnet/minecraft/network/NetworkState;getPacketId(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
    • getPacketHandler

      @Nullable public Packet<?> getPacketHandler​(NetworkSide side, int packetId)
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a(Lpb;I)Lpa;
      intermediary method_10783 Lnet/minecraft/class_2539;method_10783(Lnet/minecraft/class_2598;I)Lnet/minecraft/class_2596;
      named getPacketHandler Lnet/minecraft/network/NetworkState;getPacketHandler(Lnet/minecraft/network/NetworkSide;I)Lnet/minecraft/network/Packet;
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a()I
      intermediary method_10785 Lnet/minecraft/class_2539;method_10785()I
      named getId Lnet/minecraft/network/NetworkState;getId()I
    • byId

      @Nullable public static NetworkState byId​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a(I)Lnv;
      intermediary method_10782 Lnet/minecraft/class_2539;method_10782(I)Lnet/minecraft/class_2539;
      named byId Lnet/minecraft/network/NetworkState;byId(I)Lnet/minecraft/network/NetworkState;
    • getPacketHandlerState

      public static NetworkState getPacketHandlerState​(Packet<?> handler)
      Mappings:
      Namespace Name Mixin selector
      official a Lnv;a(Lpa;)Lnv;
      intermediary method_10786 Lnet/minecraft/class_2539;method_10786(Lnet/minecraft/class_2596;)Lnet/minecraft/class_2539;
      named getPacketHandlerState Lnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;