Class HandshakeC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket
All Implemented Interfaces:
Packet<ServerHandshakePacketListener>

public class HandshakeC2SPacket extends Object implements Packet<ServerHandshakePacketListener>
Mappings:
Namespace Name
official ws
intermediary net/minecraft/class_2889
named net/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket
  • Field Details

    • MAX_ADDRESS_LENGTH

      private static final int MAX_ADDRESS_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lws;a:I
      intermediary field_33372 Lnet/minecraft/class_2889;field_33372:I
      named MAX_ADDRESS_LENGTH Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;MAX_ADDRESS_LENGTH:I
    • protocolVersion

      private final int protocolVersion
      Mappings:
      Namespace Name Mixin selector
      official b Lws;b:I
      intermediary field_13158 Lnet/minecraft/class_2889;field_13158:I
      named protocolVersion Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;protocolVersion:I
    • address

      private final String address
      Mappings:
      Namespace Name Mixin selector
      official c Lws;c:Ljava/lang/String;
      intermediary field_13159 Lnet/minecraft/class_2889;field_13159:Ljava/lang/String;
      named address Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;address:Ljava/lang/String;
    • port

      private final int port
      Mappings:
      Namespace Name Mixin selector
      official d Lws;d:I
      intermediary field_13157 Lnet/minecraft/class_2889;field_13157:I
      named port Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;port:I
    • intendedState

      private final NetworkState intendedState
      Mappings:
      Namespace Name Mixin selector
      official e Lws;e:Lpm;
      intermediary field_13156 Lnet/minecraft/class_2889;field_13156:Lnet/minecraft/class_2539;
      named intendedState Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;intendedState:Lnet/minecraft/network/NetworkState;
  • Constructor Details

    • HandshakeC2SPacket

      public HandshakeC2SPacket(String address, int port, NetworkState intendedState)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lws;<init>(Ljava/lang/String;ILpm;)V
      intermediary <init> Lnet/minecraft/class_2889;<init>(Ljava/lang/String;ILnet/minecraft/class_2539;)V
      named <init> Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;<init>(Ljava/lang/String;ILnet/minecraft/network/NetworkState;)V
    • HandshakeC2SPacket

      public HandshakeC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lws;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2889;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerHandshakePacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ServerHandshakePacketListener serverHandshakePacketListener)
      Specified by:
      apply in interface Packet<ServerHandshakePacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lws;a(Lwt;)V
      intermediary method_12575 Lnet/minecraft/class_2889;method_12575(Lnet/minecraft/class_2890;)V
      named apply Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;apply(Lnet/minecraft/network/listener/ServerHandshakePacketListener;)V
    • getIntendedState

      public NetworkState getIntendedState()
      Mappings:
      Namespace Name Mixin selector
      official b Lws;b()Lpm;
      intermediary method_12573 Lnet/minecraft/class_2889;method_12573()Lnet/minecraft/class_2539;
      named getIntendedState Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;getIntendedState()Lnet/minecraft/network/NetworkState;
    • getProtocolVersion

      public int getProtocolVersion()
      Mappings:
      Namespace Name Mixin selector
      official c Lws;c()I
      intermediary method_12574 Lnet/minecraft/class_2889;method_12574()I
      named getProtocolVersion Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;getProtocolVersion()I
    • getAddress

      public String getAddress()
      Mappings:
      Namespace Name Mixin selector
      official d Lws;d()Ljava/lang/String;
      intermediary method_36174 Lnet/minecraft/class_2889;method_36174()Ljava/lang/String;
      named getAddress Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;getAddress()Ljava/lang/String;
    • getPort

      public int getPort()
      Mappings:
      Namespace Name Mixin selector
      official e Lws;e()I
      intermediary method_36175 Lnet/minecraft/class_2889;method_36175()I
      named getPort Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;getPort()I