Enum Class TeamColor

java.lang.Object
java.lang.Enum<TeamColor>
com.tomkeuper.bedwars.api.arena.team.TeamColor
All Implemented Interfaces:
Serializable, Comparable<TeamColor>, Constable

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

    • RED

      public static final TeamColor RED
    • BLUE

      public static final TeamColor BLUE
    • GREEN

      public static final TeamColor GREEN
    • YELLOW

      public static final TeamColor YELLOW
    • AQUA

      public static final TeamColor AQUA
    • WHITE

      public static final TeamColor WHITE
    • PINK

      public static final TeamColor PINK
    • GRAY

      public static final TeamColor GRAY
    • DARK_GREEN

      public static final TeamColor DARK_GREEN
    • DARK_GRAY

      public static final TeamColor DARK_GRAY
    • BROWN

      public static final TeamColor BROWN
    • DARK_BLUE

      public static final TeamColor DARK_BLUE
    • ORANGE

      public static final TeamColor ORANGE
    • PURPLE

      public static final TeamColor PURPLE
    • BLACK

      public static final TeamColor BLACK
  • Method Details

    • values

      public static TeamColor[] 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 TeamColor 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
    • getChatColor

      public static org.bukkit.ChatColor getChatColor(@NotNull @NotNull String tColor)
      Get chat color by team color.
      Parameters:
      tColor - - TeamColor string.
      Returns:
      ChatColor for given team.
    • chat

      public org.bukkit.ChatColor chat()
      Returns:
      Chat color for this team color.
    • dye

      public org.bukkit.DyeColor dye()
      Returns:
      DyeColor color for this team color.
    • itemByte

      public byte itemByte()
      Returns:
      byte color for MC versions until 1.12 included
    • enName

      public static String enName(@NotNull @NotNull String material)
      Get the english for material as color name.
      Parameters:
      material - material string.
      Returns:
      the english color name for given material. EMPTY if item is not supported.
    • enName

      public static String enName(byte b)
      Get the english for byte as color name.
      Parameters:
      b - color byte. Used for 1.12 and older.
      Returns:
      the english color name for given material. EMPTY if item is not supported.
    • bukkitColor

      public org.bukkit.Color bukkitColor()
      This is usually used for leather armor.
      Returns:
      Equivalent color. Returns WHITE if given color has no equivalent.
    • bedMaterial

      public org.bukkit.Material bedMaterial()
      Get bed with color. Used for 1.13+.
      Returns:
      1.13+ bed material. Return RED_BED if not found.
    • glassMaterial

      public org.bukkit.Material glassMaterial()
      Get glass with team color. Used for 1.13+ team glass.
      Returns:
      1.13+ glass material. Return GLASS if this team does not have a custom glass.
    • glassPaneMaterial

      public org.bukkit.Material glassPaneMaterial()
      Retrieve glass pane with team color.
      Returns:
      glass pane material for 1.13+.
    • glazedTerracottaMaterial

      public org.bukkit.Material glazedTerracottaMaterial()
      Get glazed terracotta with team color.
      Returns:
      1.13+ material.
    • woolMaterial

      public org.bukkit.Material woolMaterial()
      Get wool with team color.
      Returns:
      1.13+ material.