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 el
intermediary net/minecraft/class_1434
named net/minecraft/network/NetworkState
  • Enum Constant Details

    • HANDSHAKING

      public static final NetworkState HANDSHAKING
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a:Lel;
      intermediary field_5977 Lnet/minecraft/class_1434;field_5977:Lnet/minecraft/class_1434;
      named HANDSHAKING Lnet/minecraft/network/NetworkState;HANDSHAKING:Lnet/minecraft/network/NetworkState;
    • PLAY

      public static final NetworkState PLAY
      Mappings:
      Namespace Name Mixin selector
      official b Lel;b:Lel;
      intermediary field_5978 Lnet/minecraft/class_1434;field_5978:Lnet/minecraft/class_1434;
      named PLAY Lnet/minecraft/network/NetworkState;PLAY:Lnet/minecraft/network/NetworkState;
    • STATUS

      public static final NetworkState STATUS
      Mappings:
      Namespace Name Mixin selector
      official c Lel;c:Lel;
      intermediary field_5979 Lnet/minecraft/class_1434;field_5979:Lnet/minecraft/class_1434;
      named STATUS Lnet/minecraft/network/NetworkState;STATUS:Lnet/minecraft/network/NetworkState;
    • LOGIN

      public static final NetworkState LOGIN
      Mappings:
      Namespace Name Mixin selector
      official d Lel;d:Lel;
      intermediary field_5980 Lnet/minecraft/class_1434;field_5980:Lnet/minecraft/class_1434;
      named LOGIN Lnet/minecraft/network/NetworkState;LOGIN:Lnet/minecraft/network/NetworkState;
  • Field Details

    • field_5981

      private static int field_5981
      Mappings:
      Namespace Name Mixin selector
      official e Lel;e:I
      intermediary field_5981 Lnet/minecraft/class_1434;field_5981:I
      named field_5981 Lnet/minecraft/network/NetworkState;field_5981:I
    • field_5982

      private static int field_5982
      Mappings:
      Namespace Name Mixin selector
      official f Lel;f:I
      intermediary field_5982 Lnet/minecraft/class_1434;field_5982:I
      named field_5982 Lnet/minecraft/network/NetworkState;field_5982:I
    • field_5983

      private static final NetworkState[] field_5983
      Mappings:
      Namespace Name Mixin selector
      official g Lel;g:[Lel;
      intermediary field_5983 Lnet/minecraft/class_1434;field_5983:[Lnet/minecraft/class_1434;
      named field_5983 Lnet/minecraft/network/NetworkState;field_5983:[Lnet/minecraft/network/NetworkState;
    • field_5984

      private static final Map<Class<? extends Packet>,​NetworkState> field_5984
      Mappings:
      Namespace Name Mixin selector
      official h Lel;h:Ljava/util/Map;
      intermediary field_5984 Lnet/minecraft/class_1434;field_5984:Ljava/util/Map;
      named field_5984 Lnet/minecraft/network/NetworkState;field_5984:Ljava/util/Map;
    • stateId

      private final int stateId
      Mappings:
      Namespace Name Mixin selector
      official i Lel;i:I
      intermediary field_5985 Lnet/minecraft/class_1434;field_5985:I
      named stateId Lnet/minecraft/network/NetworkState;stateId:I
    • field_5986

      private final Map<NetworkSide,​BiMap<Integer,​Class<? extends Packet>>> field_5986
      Mappings:
      Namespace Name Mixin selector
      official j Lel;j:Ljava/util/Map;
      intermediary field_5986 Lnet/minecraft/class_1434;field_5986:Ljava/util/Map;
      named field_5986 Lnet/minecraft/network/NetworkState;field_5986:Ljava/util/Map;
  • Constructor Details

    • NetworkState

      private NetworkState​(int int2)
  • 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
    • method_5125

      protected NetworkState method_5125​(NetworkSide networkSide, Class<? extends Packet> class2)
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;Ljava/lang/Class;)Lel;
      intermediary method_5125 Lnet/minecraft/class_1434;method_5125(Lnet/minecraft/class_1458;Ljava/lang/Class;)Lnet/minecraft/class_1434;
      named method_5125 Lnet/minecraft/network/NetworkState;method_5125(Lnet/minecraft/network/NetworkSide;Ljava/lang/Class;)Lnet/minecraft/network/NetworkState;
    • method_5124

      public Integer method_5124​(NetworkSide networkSide, Packet packet)
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;Lff;)Ljava/lang/Integer;
      intermediary method_5124 Lnet/minecraft/class_1434;method_5124(Lnet/minecraft/class_1458;Lnet/minecraft/class_1457;)Ljava/lang/Integer;
      named method_5124 Lnet/minecraft/network/NetworkState;method_5124(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
    • method_5123

      public Packet method_5123​(NetworkSide networkSide, int int2) throws IllegalAccessException, InstantiationException
      Throws:
      IllegalAccessException
      InstantiationException
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;I)Lff;
      intermediary method_5123 Lnet/minecraft/class_1434;method_5123(Lnet/minecraft/class_1458;I)Lnet/minecraft/class_1457;
      named method_5123 Lnet/minecraft/network/NetworkState;method_5123(Lnet/minecraft/network/NetworkSide;I)Lnet/minecraft/network/Packet;
    • getId

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

      public static NetworkState byId​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(I)Lel;
      intermediary method_5121 Lnet/minecraft/class_1434;method_5121(I)Lnet/minecraft/class_1434;
      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 Lel;a(Lff;)Lel;
      intermediary method_5122 Lnet/minecraft/class_1434;method_5122(Lnet/minecraft/class_1457;)Lnet/minecraft/class_1434;
      named getPacketHandlerState Lnet/minecraft/network/NetworkState;getPacketHandlerState(Lnet/minecraft/network/Packet;)Lnet/minecraft/network/NetworkState;