Enum Class DeathmatchState

java.lang.Object
java.lang.Enum<DeathmatchState>
dev.itsharshxd.zentrix.api.deathmatch.DeathmatchState
All Implemented Interfaces:
Serializable, Comparable<DeathmatchState>, Constable

public enum DeathmatchState extends Enum<DeathmatchState>
Where a match is with its deathmatch.
Since:
1.8.0
  • Enum Constant Details

    • NOT_STARTED

      public static final DeathmatchState NOT_STARTED
      No deathmatch was requested yet, or the match is not running.
    • SUPPRESSED

      public static final DeathmatchState SUPPRESSED
      A deathmatch was requested while No Deathmatch is active, so nothing was copied. It starts normally if that scenario is disabled or isolated during the match.
    • PREPARING

      public static final DeathmatchState PREPARING
      The deathmatch arena is being prepared and players are about to be moved.
    • ACTIVE

      public static final DeathmatchState ACTIVE
      The match is in its deathmatch.
  • Method Details

    • values

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