public class NPacketHandshakeInSetProtocol extends Object implements NPacketHandshake
| Modifier and Type | Field and Description |
|---|---|
String |
hostname |
int |
nextState |
int |
port |
int |
protocol |
| Constructor and Description |
|---|
NPacketHandshakeInSetProtocol() |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
getPacketType()
Get type of packet
|
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, getPacketName, writepublic int protocol
public int port
public int nextState
public String hostname
public void read(PacketSerializer serializer, Version version)
NPacketread in interface NPacketread in interface NPacketHandshakeserializer - the content of packetversion - the version of packetpublic PacketType getPacketType()
NPacketgetPacketType in interface NPacket