public class PacketGameInit extends java.lang.Object implements Packet
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConvexObject> |
objects
The convex objects for this game.
|
private java.util.List<PlayerProxy> |
players
The players participating in this game.
|
private java.lang.String |
seed
The game seed.
|
private static long |
serialVersionUID
Serial ID.
|
Constructor and Description |
---|
PacketGameInit(java.util.List<ConvexObject> objects,
java.lang.String seed,
java.util.List<Player> players)
Constructs a new game init packet with the given objects and players.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ConvexObject> |
getObjects()
Gets the objects for this game.
|
java.util.List<PlayerProxy> |
getPlayers()
Gets the players for this game.
|
PacketRegistry |
getRegisteryType()
The registry type of this packet.
|
java.lang.String |
getSeed()
Gets the game seed.
|
private static final long serialVersionUID
private final java.util.List<ConvexObject> objects
private final java.lang.String seed
private final java.util.List<PlayerProxy> players
public PacketGameInit(java.util.List<ConvexObject> objects, java.lang.String seed, java.util.List<Player> players)
objects
- The game objects.seed
- The game seed.players
- The participating players.public java.lang.String getSeed()
public java.util.List<ConvexObject> getObjects()
public java.util.List<PlayerProxy> getPlayers()
public PacketRegistry getRegisteryType()
Packet
getRegisteryType
in interface Packet