Package net.blueva.arcade.api.events
Class GameEvent
java.lang.Object
net.blueva.arcade.api.events.GameEvent
- Direct Known Subclasses:
GameEndEvent,GameStartEvent,PlayerEliminateEvent,PlayerJoinGameEvent,PlayerLeaveGameEvent
Base class for all BlueArcade game events.
All game-related events extend this class and provide access to the arena ID
and game module ID where the event occurred. Events can be listened to using
the CustomEventRegistry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the ID of the arena where this event occurred.Gets the unique identifier of the game module.
-
Constructor Details
-
GameEvent
Constructs a new game event.- Parameters:
arenaId- the ID of the arena where this event occurredgameId- the unique identifier of the game module
-
-
Method Details
-
getArenaId
public int getArenaId()Gets the ID of the arena where this event occurred.- Returns:
- the arena ID
-
getGameId
Gets the unique identifier of the game module.- Returns:
- the game module ID
-