public class HandshakePacket extends MinecraftPacket
| Constructor and Description |
|---|
HandshakePacket(int protocolVersion,
String hostname,
int port,
HandshakeIntent intent) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHostName() |
HandshakeIntent |
getIntent() |
int |
getPort() |
int |
getProtocolVersion() |
boolean |
isPriority() |
void |
read(com.github.steveice10.packetlib.io.NetInput in) |
void |
write(com.github.steveice10.packetlib.io.NetOutput out) |
toStringpublic HandshakePacket(int protocolVersion,
String hostname,
int port,
HandshakeIntent intent)
public int getProtocolVersion()
public String getHostName()
public int getPort()
public HandshakeIntent getIntent()
public void read(com.github.steveice10.packetlib.io.NetInput in)
throws IOException
IOExceptionpublic void write(com.github.steveice10.packetlib.io.NetOutput out)
throws IOException
IOExceptionpublic boolean isPriority()
isPriority in interface com.github.steveice10.packetlib.packet.PacketisPriority in class MinecraftPacketCopyright © 2020. All rights reserved.