Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
dev.despical.whackme.api.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable

public enum EventType extends Enum<EventType>
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.

  • Enum Constant Details

    • GAME_START

      public static final EventType GAME_START
      A game has entered active play.
    • GAME_END

      public static final EventType GAME_END
      A game has reached its normal ending phase.
    • GAME_STATE_CHANGE

      public static final EventType GAME_STATE_CHANGE
      A game is about to transition to another state.
    • GAME_STOP

      public static final EventType GAME_STOP
      A game has been forcefully stopped.
    • PLAYER_JOIN_ATTEMPT

      public static final EventType PLAYER_JOIN_ATTEMPT
      A player is attempting to join a game.
    • PLAYER_LEAVE

      public static final EventType PLAYER_LEAVE
      A player is about to leave a game.
    • PLAYER_STAT_CHANGE

      public static final EventType PLAYER_STAT_CHANGE
      A player's stored or temporary statistic is about to change.
  • Method Details

    • values

      public static EventType[] 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

      public static EventType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getEventClass

      public Class<? extends org.bukkit.event.Event> getEventClass()
      Returns the concrete Bukkit event class represented by this type.
      Returns:
      concrete event implementation class