Package net.blueva.arcade.api.events
Class GameStartEvent<P>
java.lang.Object
net.blueva.arcade.api.events.GameEvent
net.blueva.arcade.api.events.GameStartEvent<P>
- Type Parameters:
P- the player type (platform-specific)
Event fired when a game starts.
This event is triggered when the game transitions from the COUNTDOWN phase to the PLAYING phase. It provides access to all players who are participating in the game at the start.
-
Constructor Summary
ConstructorsConstructorDescriptionGameStartEvent(int arenaId, String gameId, List<P> players) Constructs a new GameStartEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of all players who are participating in the game.Methods inherited from class net.blueva.arcade.api.events.GameEvent
getArenaId, getGameId
-
Constructor Details
-
GameStartEvent
Constructs a new GameStartEvent.- Parameters:
arenaId- the ID of the arena where the game is startinggameId- the unique identifier of the game moduleplayers- the list of all players participating in the game
-
-
Method Details
-
getPlayers
Gets the list of all players who are participating in the game.- Returns:
- an immutable list of all players at game start
-