Enum Class GameEndEvent.EndReason

java.lang.Object
java.lang.Enum<GameEndEvent.EndReason>
dev.itsharshxd.zentrix.api.events.game.GameEndEvent.EndReason
All Implemented Interfaces:
Serializable, Comparable<GameEndEvent.EndReason>, Constable
Enclosing class:
GameEndEvent

public static enum GameEndEvent.EndReason extends Enum<GameEndEvent.EndReason>
Represents the reason a game ended.
  • Enum Constant Details

    • WINNER_DETERMINED

      public static final GameEndEvent.EndReason WINNER_DETERMINED
      The game ended normally with a winner (last team/player standing).
    • ALL_PLAYERS_LEFT

      public static final GameEndEvent.EndReason ALL_PLAYERS_LEFT
      All players left the game before a winner could be determined.
    • FORCE_ENDED

      public static final GameEndEvent.EndReason FORCE_ENDED
      The game was forcibly ended by an administrator.
    • PLUGIN_DISABLED

      public static final GameEndEvent.EndReason PLUGIN_DISABLED
      The game ended because the plugin is being disabled.
    • ERROR

      public static final GameEndEvent.EndReason ERROR
      The game ended due to an error or unexpected condition.
  • Method Details

    • values

      public static GameEndEvent.EndReason[] 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 GameEndEvent.EndReason 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