Class GameEvent

java.lang.Object
net.blueva.arcade.api.events.GameEvent
Direct Known Subclasses:
GameEndEvent, GameStartEvent, PlayerEliminateEvent, PlayerJoinGameEvent, PlayerLeaveGameEvent

public abstract class GameEvent extends Object
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 Details

    • GameEvent

      public GameEvent(int arenaId, String gameId)
      Constructs a new game event.
      Parameters:
      arenaId - the ID of the arena where this event occurred
      gameId - 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

      public String getGameId()
      Gets the unique identifier of the game module.
      Returns:
      the game module ID