Enum Class PlayerTeam

java.lang.Object
java.lang.Enum<PlayerTeam>
com.xyrisdev.cloud.implementation.model.PlayerTeam
All Implemented Interfaces:
Serializable, Comparable<PlayerTeam>, Constable

public enum PlayerTeam extends Enum<PlayerTeam>
  • Enum Constant Details

    • RED

      public static final PlayerTeam RED
      The RED team in the duel.

      This represents one of the two teams that players can belong to during a duel.

    • BLUE

      public static final PlayerTeam BLUE
      The BLUE team in the duel.

      This represents the other team that players can belong to during a duel.

  • Method Details

    • values

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