Class GameEvent

java.lang.Object
org.bukkit.event.Event
dev.despical.tntrun.api.event.TNTRunEvent
dev.despical.tntrun.api.event.game.GameEvent
Direct Known Subclasses:
GameEndEvent, GameStartEvent, GameStateChangeEvent, GameStopEvent

public abstract class GameEvent extends TNTRunEvent
Base class for all events related to an active TNTRun game instance.

This event provides access to the Game object, which represents the current game session and exposes core managers such as:

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Game
    The game instance associated with this event.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Arena
    Returns the arena where this game is running.
    Returns a compact debug representation containing the related arena.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • game

      protected final Game game
      The game instance associated with this event.
  • Constructor Details

    • GameEvent

      public GameEvent()
  • Method Details

    • getArena

      @NotNull public @NotNull Arena getArena()
      Returns the arena where this game is running.
      Returns:
      the active Arena
    • toString

      public String toString()
      Returns a compact debug representation containing the related arena.
      Overrides:
      toString in class Object
      Returns:
      a string containing the event arena