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 un
intermediary net/minecraft/class_2889
named net/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket
  • Field Details

    • protocolVersion

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

      private String address
      Mappings:
      Namespace Name Mixin selector
      official b Lun;b: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 int port
      Mappings:
      Namespace Name Mixin selector
      official c Lun;c:I
      intermediary field_13157 Lnet/minecraft/class_2889;field_13157:I
      named port Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;port:I
    • intendedState

      private NetworkState intendedState
      Mappings:
      Namespace Name Mixin selector
      official d Lun;d:Lnv;
      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()
    • HandshakeC2SPacket

      @Environment(CLIENT) public HandshakeC2SPacket​(String address, int port, NetworkState intendedState)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lun;<init>(Ljava/lang/String;ILnv;)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
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerHandshakePacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerHandshakePacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Lun;a(Luo;)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 Lun;b()Lnv;
      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 Lun;c()I
      intermediary method_12574 Lnet/minecraft/class_2889;method_12574()I
      named getProtocolVersion Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;getProtocolVersion()I