net.minecraft.network.packet.c2s.handshake

public record HandshakeC2SPacket

implements Packet<ServerHandshakePacketListener>

net.minecraft.network.protocol.handshake.ClientIntentionPacket
net.minecraft.class_2889
net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket

Field summary

Modifier and TypeField
private final int
protocolVersion
comp_1563
protocolVersion
private final String
hostName
comp_1564
address
private final int
port
comp_1565
port
private final ConnectionIntent
intention
comp_1566
intendedState
public static final PacketCodec<PacketByteBuf, HandshakeC2SPacket>
STREAM_CODEC
field_48229
CODEC
private static final int
MAX_HOST_LENGTH
field_33372
MAX_ADDRESS_LENGTH

Constructor summary

ModifierConstructor
public (int protocolVersion, String address, int port, ConnectionIntent intendedState)
private (PacketByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_56007(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<HandshakeC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerHandshakePacketListener listener)
method_12575(class_2890 arg0)
apply(ServerHandshakePacketListener arg0)
public boolean
isTerminal()
method_55943()
transitionsNetworkState()
public int
protocolVersion()
comp_1563()
protocolVersion()
public String
hostName()
comp_1564()
address()
public int
port()
comp_1565()
port()
public ConnectionIntent
intention()
comp_1566()
intendedState()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)