Enum Class EventType
- All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable
Lists every Bukkit event exposed by the Whack Me API and associates each
logical event type with its concrete implementation class.
The mapping is used by EventManager.callByType(EventType, java.util.function.Supplier)
to detect accidental mismatches between an event identifier and the event
supplied by internal dispatch code.
API Note: Plugin integrations normally listen to the concrete Bukkit event class directly. This enum is primarily useful for discovery, diagnostics, and generic event tooling.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA game has reached its normal ending phase.A game has entered active play.A game is about to transition to another state.A game has been forcefully stopped.A player is attempting to join a game.A player is about to leave a game.A player's stored or temporary statistic is about to change. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.bukkit.event.Event> Returns the concrete Bukkit event class represented by this type.static EventTypeReturns the enum constant of this class with the specified name.static EventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAME_START
A game has entered active play. -
GAME_END
A game has reached its normal ending phase. -
GAME_STATE_CHANGE
A game is about to transition to another state. -
GAME_STOP
A game has been forcefully stopped. -
PLAYER_JOIN_ATTEMPT
A player is attempting to join a game. -
PLAYER_LEAVE
A player is about to leave a game. -
PLAYER_STAT_CHANGE
A player's stored or temporary statistic is about to change.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEventClass
Returns the concrete Bukkit event class represented by this type.- Returns:
- concrete event implementation class
-