Package net.blueva.arcade.api.events
Class GameEndEvent<P>
java.lang.Object
net.blueva.arcade.api.events.GameEvent
net.blueva.arcade.api.events.GameEndEvent<P>
- Type Parameters:
P- the player type (platform-specific)
Event fired when a game ends.
This event is triggered when the game transitions to the ENDING phase. It provides access to the complete game result, including winner, podium, and all players. Game modules can listen to this event to perform cleanup or final statistics processing.
-
Constructor Summary
ConstructorsConstructorDescriptionGameEndEvent(int arenaId, String gameId, GameResult<P> result) Constructs a new GameEndEvent. -
Method Summary
Methods inherited from class net.blueva.arcade.api.events.GameEvent
getArenaId, getGameId
-
Constructor Details
-
GameEndEvent
Constructs a new GameEndEvent.- Parameters:
arenaId- the ID of the arena where the game endedgameId- the unique identifier of the game moduleresult- the final result of the game
-
-
Method Details
-
getResult
Gets the result of the ended game.- Returns:
- the game result containing winner, podium, and all players
-