public class PacketPlayerJoin extends java.lang.Object implements Packet
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the player that wants to join.
|
private static long |
serialVersionUID
Serial ID.
|
private java.lang.String |
version
The version of the game the player that wants to join is running.
|
Constructor and Description |
---|
PacketPlayerJoin(java.lang.String name,
java.lang.String version)
Constructs a new player join packet.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of the player that wants to join.
|
PacketRegistry |
getRegisteryType()
The registry type of this packet.
|
java.lang.String |
getVersion()
Gets the version of the game the player that wants to
join is currently running.
|
private static final long serialVersionUID
private final java.lang.String name
private final java.lang.String version
public PacketPlayerJoin(java.lang.String name, java.lang.String version)
name
- The name of the player that wants to join.version
- The version of the game the player is running.public java.lang.String getName()
public java.lang.String getVersion()
public PacketRegistry getRegisteryType()
Packet
getRegisteryType
in interface Packet