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 Summary
Fields Modifier and Type Field Description private String
address
private NetworkState
intendedState
private int
port
private int
protocolVersion
-
Constructor Summary
Constructors Constructor Description HandshakeC2SPacket()
HandshakeC2SPacket(String address, int port, NetworkState intendedState)
-
Method Summary
Modifier and Type Method Description void
apply(ServerHandshakePacketListener serverHandshakePacketListener)
NetworkState
getIntendedState()
int
getProtocolVersion()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
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
- 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
- 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
- Specified by:
read
in interfacePacket<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
- Specified by:
write
in interfacePacket<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
- Specified by:
apply
in interfacePacket<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
- 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
-