Class GameEvent
java.lang.Object
org.bukkit.event.Event
dev.despical.whackme.api.event.WhackMeEvent
dev.despical.whackme.api.event.game.GameEvent
- Direct Known Subclasses:
GameEndEvent, GameStartEvent, GameStateChangeEvent, GameStopEvent
Base class for events associated with one Whack Me game session.
The related Game provides access to the player, point handler,
scoreboard, boss bar, timer, state, and arena configuration. The exact
lifecycle guarantees depend on the concrete event.
API note: A Game is a live runtime object. Do not mutate it from
asynchronous event handlers.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, getHandlers, isAsynchronous
-
Field Details
-
game
-
-
Constructor Details
-
GameEvent
Creates a game-scoped Whack Me event.- Parameters:
game- game associated with the event
-
-
Method Details
-
getGame
-
getArena
Returns the arena that owns the related game.- Returns:
- game arena
-
toString
-