public class PacketPlayerJoinAccept extends java.lang.Object implements Packet
Modifier and Type | Field and Description |
---|---|
private int |
id
The assigned player ID.
|
private static long |
serialVersionUID
Serial ID.
|
Constructor and Description |
---|
PacketPlayerJoinAccept(int id)
Constructs a new join accept packet with the given
assigned ID for the joining player.
|
Modifier and Type | Method and Description |
---|---|
int |
getID()
Gets the ID assigned to the joining player.
|
PacketRegistry |
getRegisteryType()
The registry type of this packet.
|
private static final long serialVersionUID
private final int id
public PacketPlayerJoinAccept(int id)
id
- The ID for the player.public int getID()
public PacketRegistry getRegisteryType()
Packet
getRegisteryType
in interface Packet