Enum Class ParticipantState

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

public enum ParticipantState extends Enum<ParticipantState>
Where a player stands in a match, told apart more finely than ZentrixPlayer.isAlive() and ZentrixPlayer.isSpectating() can.
Since:
1.8.0
  • Enum Constant Details

    • WAITING

      public static final ParticipantState WAITING
      In a match that has not started yet.
    • ALIVE

      public static final ParticipantState ALIVE
      Playing a running match.
    • ELIMINATED

      public static final ParticipantState ELIMINATED
      Was playing this match, was eliminated, and is watching it now.
    • SPECTATING

      public static final ParticipantState SPECTATING
      Watching a match without having played in it.
    • DISCONNECTED_RETURNABLE

      public static final ParticipantState DISCONNECTED_RETURNABLE
      Left a running match and can still return to it through their corpse.
    • NOT_PARTICIPATING

      public static final ParticipantState NOT_PARTICIPATING
      Not part of any match.
  • Method Details

    • values

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