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, wait
create, getPacketName, write
public int protocol
public int port
public int nextState
public String hostname
public void read(PacketSerializer serializer, Version version)
NPacket
read
in interface NPacket
read
in interface NPacketHandshake
serializer
- the content of packetversion
- the version of packetpublic PacketType getPacketType()
NPacket
getPacketType
in interface NPacket