Enum Class NetworkState

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

public enum NetworkState extends Enum<NetworkState>
Mappings:
Namespace Name
official sn
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 Lsn;a:Lsn;
      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 Lsn;b:Lsn;
      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 Lsn;c:Lsn;
      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 Lsn;d:Lsn;
      intermediary field_20593 Lnet/minecraft/class_2539;field_20593:Lnet/minecraft/class_2539;
      named LOGIN Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
    • CONFIGURATION

      public static final NetworkState CONFIGURATION
      Mappings:
      Namespace Name Mixin selector
      official e Lsn;e:Lsn;
      intermediary field_45671 Lnet/minecraft/class_2539;field_45671:Lnet/minecraft/class_2539;
      named CONFIGURATION Lnet/minecraft/network/NetworkState;CONFIGURATION:Lnet/minecraft/network/NetworkState;
  • Field Details

    • UNKNOWN_PACKET_ID

      public static final int UNKNOWN_PACKET_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lsn;f:I
      intermediary field_41866 Lnet/minecraft/class_2539;field_41866:I
      named UNKNOWN_PACKET_ID Lnet/minecraft/network/NetworkState;UNKNOWN_PACKET_ID:I
    • stateId

      private final String stateId
      Mappings:
      Namespace Name Mixin selector
      official g Lsn;g:Ljava/lang/String;
      intermediary field_20594 Lnet/minecraft/class_2539;field_20594:Ljava/lang/String;
      named stateId Lnet/minecraft/network/NetworkState;stateId:Ljava/lang/String;
    • packetHandlers

      private final Map<NetworkSide,NetworkState.PacketHandler<?>> packetHandlers
      Mappings:
      Namespace Name Mixin selector
      official h Lsn;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(String stateId, NetworkState.PacketHandlerInitializer initializer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsn;<init>(Ljava/lang/String;ILjava/lang/String;Lsn$c;)V
      intermediary <init> Lnet/minecraft/class_2539;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_2539$class_4533;)V
      named <init> Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/network/NetworkState$PacketHandlerInitializer;)V
  • Method Details

    • values

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

      public static NetworkState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 Lsn;b()Lsn$c;
      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;
    • getPacketIdToPacketMap

      public Int2ObjectMap<Class<? extends Packet<?>>> getPacketIdToPacketMap(NetworkSide side)
      Mappings:
      Namespace Name Mixin selector
      official a Lsn;a(Lve;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary method_39498 Lnet/minecraft/class_2539;method_39498(Lnet/minecraft/class_2598;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named getPacketIdToPacketMap Lnet/minecraft/network/NetworkState;getPacketIdToPacketMap(Lnet/minecraft/network/NetworkSide;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • getId

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lsn;a()Ljava/lang/String;
      intermediary method_10785 Lnet/minecraft/class_2539;method_10785()Ljava/lang/String;
      named getId Lnet/minecraft/network/NetworkState;getId()Ljava/lang/String;
    • getHandler

      public NetworkState.PacketHandler<?> getHandler(NetworkSide side)
      Mappings:
      Namespace Name Mixin selector
      official b Lsn;b(Lve;)Lsn$a;
      intermediary method_52921 Lnet/minecraft/class_2539;method_52921(Lnet/minecraft/class_2598;)Lnet/minecraft/class_2539$class_8698;
      named getHandler Lnet/minecraft/network/NetworkState;getHandler(Lnet/minecraft/network/NetworkSide;)Lnet/minecraft/network/NetworkState$PacketHandler;