Class ClientIntentionPacket
java.lang.Object
net.minecraft.network.protocol.handshake.ClientIntentionPacket
- All Implemented Interfaces:
Packet<ServerHandshakePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private final String
private final ConnectionProtocol
private static final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionClientIntentionPacket
(String p_134726_, int p_134727_, ConnectionProtocol p_134728_) ClientIntentionPacket
(FriendlyByteBuf p_179801_) -
Method Summary
Modifier and TypeMethodDescriptionint
getPort()
int
void
handle
(ServerHandshakePacketListener p_134734_) void
write
(FriendlyByteBuf p_134737_) 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.protocol.Packet
isSkippable
-
Field Details
-
MAX_HOST_LENGTH
private static final int MAX_HOST_LENGTH- See Also:
-
protocolVersion
private final int protocolVersion -
hostName
-
port
private final int port -
intention
-
fmlVersion
-
-
Constructor Details
-
ClientIntentionPacket
-
ClientIntentionPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerHandshakePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerHandshakePacketListener>
-
getIntention
-
getProtocolVersion
public int getProtocolVersion() -
getHostName
-
getPort
public int getPort() -
getFMLVersion
-