Enum Class NetworkState

java.lang.Object
java.lang.Enum<NetworkState>
net.minecraft.network.NetworkState
All Implemented Interfaces:
Serializable, Comparable<NetworkState>, Constable
Direct Known Subclasses:
HandshakeState, LoginState, PlayState, QueryState

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

    • HANDSHAKING

      public static final NetworkState HANDSHAKING
      Mappings:
      Namespace Name Mixin selector
      official a Lej;a:Lej;
      intermediary field_8445 Lnet/minecraft/class_1962;field_8445:Lnet/minecraft/class_1962;
      named HANDSHAKING Lnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
    • PLAY

      public static final NetworkState PLAY
      Mappings:
      Namespace Name Mixin selector
      official b Lej;b:Lej;
      intermediary field_8446 Lnet/minecraft/class_1962;field_8446:Lnet/minecraft/class_1962;
      named PLAY Lnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
    • STATUS

      public static final NetworkState STATUS
      Mappings:
      Namespace Name Mixin selector
      official c Lej;c:Lej;
      intermediary field_8447 Lnet/minecraft/class_1962;field_8447:Lnet/minecraft/class_1962;
      named STATUS Lnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
    • LOGIN

      public static final NetworkState LOGIN
      Mappings:
      Namespace Name Mixin selector
      official d Lej;d:Lej;
      intermediary field_8448 Lnet/minecraft/class_1962;field_8448:Lnet/minecraft/class_1962;
      named LOGIN Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
  • Field Details

    • TYPE

      private static final gnu.trove.map.TIntObjectMap TYPE
      Mappings:
      Namespace Name Mixin selector
      official e Lej;e:Lgnu/trove/map/TIntObjectMap;
      intermediary field_8449 Lnet/minecraft/class_1962;field_8449:Lgnu/trove/map/TIntObjectMap;
      named TYPE Lnet/minecraft/network/NetworkState;TYPE:Lgnu/trove/map/TIntObjectMap;
    • PACKET_TO_STATE

      private static final Map PACKET_TO_STATE
      Mappings:
      Namespace Name Mixin selector
      official f Lej;f:Ljava/util/Map;
      intermediary field_8450 Lnet/minecraft/class_1962;field_8450:Ljava/util/Map;
      named PACKET_TO_STATE Lnet/minecraft/network/NetworkState;PACKET_TO_STATE:Ljava/util/Map;
    • stateId

      private final int stateId
      Mappings:
      Namespace Name Mixin selector
      official g Lej;g:I
      intermediary field_8451 Lnet/minecraft/class_1962;field_8451:I
      named stateId Lnet/minecraft/network/NetworkState;stateId:I
    • CLIENT2SERVER

      private final BiMap CLIENT2SERVER
      Mappings:
      Namespace Name Mixin selector
      official h Lej;h:Lcom/google/common/collect/BiMap;
      intermediary field_8452 Lnet/minecraft/class_1962;field_8452:Lcom/google/common/collect/BiMap;
      named CLIENT2SERVER Lnet/minecraft/network/NetworkState;CLIENT2SERVER:Lcom/google/common/collect/BiMap;
    • SERVER2CLIENT

      private final BiMap SERVER2CLIENT
      Mappings:
      Namespace Name Mixin selector
      official i Lej;i:Lcom/google/common/collect/BiMap;
      intermediary field_8453 Lnet/minecraft/class_1962;field_8453:Lcom/google/common/collect/BiMap;
      named SERVER2CLIENT Lnet/minecraft/network/NetworkState;SERVER2CLIENT:Lcom/google/common/collect/BiMap;
  • Constructor Details

    • NetworkState

      private NetworkState(int stateId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lej;<init>(Ljava/lang/String;II)V
      intermediary <init> Lnet/minecraft/class_1962;<init>(Ljava/lang/String;II)V
      named <init> Lnet/minecraft/network/NetworkState;<init>(Ljava/lang/String;II)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
    • registerClient2Server

      protected NetworkState registerClient2Server(int id, Class packetClass)
      Mappings:
      Namespace Name Mixin selector
      official a Lej;a(ILjava/lang/Class;)Lej;
      intermediary method_7412 Lnet/minecraft/class_1962;method_7412(ILjava/lang/Class;)Lnet/minecraft/class_1962;
      named registerClient2Server Lnet/minecraft/network/NetworkState;registerClient2Server(ILjava/lang/Class;)Lnet/minecraft/network/NetworkState;
    • registerServer2Client

      protected NetworkState registerServer2Client(int id, Class packetClass)
      Mappings:
      Namespace Name Mixin selector
      official b Lej;b(ILjava/lang/Class;)Lej;
      intermediary method_7416 Lnet/minecraft/class_1962;method_7416(ILjava/lang/Class;)Lnet/minecraft/class_1962;
      named registerServer2Client Lnet/minecraft/network/NetworkState;registerServer2Client(ILjava/lang/Class;)Lnet/minecraft/network/NetworkState;
    • getClientToServer

      public BiMap getClientToServer()
      Mappings:
      Namespace Name Mixin selector
      official a Lej;a()Lcom/google/common/collect/BiMap;
      intermediary method_7410 Lnet/minecraft/class_1962;method_7410()Lcom/google/common/collect/BiMap;
      named getClientToServer Lnet/minecraft/network/NetworkState;getClientToServer()Lcom/google/common/collect/BiMap;
    • getServerToClient

      public BiMap getServerToClient()
      Mappings:
      Namespace Name Mixin selector
      official b Lej;b()Lcom/google/common/collect/BiMap;
      intermediary method_7415 Lnet/minecraft/class_1962;method_7415()Lcom/google/common/collect/BiMap;
      named getServerToClient Lnet/minecraft/network/NetworkState;getServerToClient()Lcom/google/common/collect/BiMap;
    • method_7414

      public BiMap method_7414(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lej;a(Z)Lcom/google/common/collect/BiMap;
      intermediary method_7414 Lnet/minecraft/class_1962;method_7414(Z)Lcom/google/common/collect/BiMap;
      named method_7414 Lnet/minecraft/network/NetworkState;method_7414(Z)Lcom/google/common/collect/BiMap;
    • method_7417

      public BiMap method_7417(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Lej;b(Z)Lcom/google/common/collect/BiMap;
      intermediary method_7417 Lnet/minecraft/class_1962;method_7417(Z)Lcom/google/common/collect/BiMap;
      named method_7417 Lnet/minecraft/network/NetworkState;method_7417(Z)Lcom/google/common/collect/BiMap;
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official c Lej;c()I
      intermediary method_7418 Lnet/minecraft/class_1962;method_7418()I
      named getId Lnet/minecraft/network/NetworkState;getId()I
    • byId

      public static NetworkState byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lej;a(I)Lej;
      intermediary method_7411 Lnet/minecraft/class_1962;method_7411(I)Lnet/minecraft/class_1962;
      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 Lej;a(Lfj;)Lej;
      intermediary method_7413 Lnet/minecraft/class_1962;method_7413(Lnet/minecraft/class_700;)Lnet/minecraft/class_1962;
      named getPacketHandlerState Lnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;