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 el
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 Lel;a:Lel;
      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 Lel;b:Lel;
      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 Lel;c:Lel;
      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 Lel;d:Lel;
      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

    • field_11566

      private static int field_11566
      Mappings:
      Namespace Name Mixin selector
      official e Lel;e:I
      intermediary field_11566 Lnet/minecraft/class_1962;field_11566:I
      named field_11566 Lnet/minecraft/network/NetworkState;field_11566:I
    • field_11567

      private static int field_11567
      Mappings:
      Namespace Name Mixin selector
      official f Lel;f:I
      intermediary field_11567 Lnet/minecraft/class_1962;field_11567:I
      named field_11567 Lnet/minecraft/network/NetworkState;field_11567:I
    • field_11568

      private static final NetworkState[] field_11568
      Mappings:
      Namespace Name Mixin selector
      official g Lel;g:[Lel;
      intermediary field_11568 Lnet/minecraft/class_1962;field_11568:[Lnet/minecraft/class_1962;
      named field_11568 Lnet/minecraft/network/NetworkState;field_11568:[Lnet/minecraft/network/NetworkState;
    • PACKET_TO_STATE

      private static final Map<Class<? extends Packet>,NetworkState> PACKET_TO_STATE
      Mappings:
      Namespace Name Mixin selector
      official h Lel;h: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 i Lel;i:I
      intermediary field_8451 Lnet/minecraft/class_1962;field_8451:I
      named stateId Lnet/minecraft/network/NetworkState;stateId:I
    • field_11569

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

    • NetworkState

      private NetworkState(int stateId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lel;<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
    • method_10599

      protected NetworkState method_10599(NetworkSide networkSide, Class<? extends Packet> class2)
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;Ljava/lang/Class;)Lel;
      intermediary method_10599 Lnet/minecraft/class_1962;method_10599(Lnet/minecraft/class_2569;Ljava/lang/Class;)Lnet/minecraft/class_1962;
      named method_10599 Lnet/minecraft/network/NetworkState;method_10599(Lnet/minecraft/network/NetworkSide;Ljava/lang/Class;)Lnet/minecraft/network/NetworkState;
    • method_10598

      public Integer method_10598(NetworkSide networkSide, Packet packet)
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;Lff;)Ljava/lang/Integer;
      intermediary method_10598 Lnet/minecraft/class_1962;method_10598(Lnet/minecraft/class_2569;Lnet/minecraft/class_700;)Ljava/lang/Integer;
      named method_10598 Lnet/minecraft/network/NetworkState;method_10598(Lnet/minecraft/network/NetworkSide;Lnet/minecraft/network/Packet;)Ljava/lang/Integer;
    • method_10597

      public Packet method_10597(NetworkSide networkSide, int int2) throws IllegalAccessException, InstantiationException
      Throws:
      IllegalAccessException
      InstantiationException
      Mappings:
      Namespace Name Mixin selector
      official a Lel;a(Lfg;I)Lff;
      intermediary method_10597 Lnet/minecraft/class_1962;method_10597(Lnet/minecraft/class_2569;I)Lnet/minecraft/class_700;
      named method_10597 Lnet/minecraft/network/NetworkState;method_10597(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_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 Lel;a(I)Lel;
      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 Lel;a(Lff;)Lel;
      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;