Enum Class TeamColor

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

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

  • 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.
    • getChatColor

      @Deprecated public static org.bukkit.ChatColor getChatColor(TeamColor teamColor)
      Deprecated.
      Parameters:
      teamColor - team color.
      Returns:
      Chat color for this team color.
    • getDyeColor

      @Deprecated public static org.bukkit.DyeColor getDyeColor(@NotNull @NotNull String teamColor)
      Deprecated.
      Parameters:
      teamColor - team color.
      Returns:
      DyeColor color for this team color.
    • dye

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

      @Deprecated public static byte itemColor(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Parameters:
      teamColor - team color.
      Returns:
      byte color for MC versions until 1.12 included
    • 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.
    • getColor

      @Deprecated public static org.bukkit.Color getColor(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      This may be used for leather armor.
      Parameters:
      teamColor - team color.
      Returns:
      Equivalent color. Returns WHITE if given color has no equivalent.
    • bukkitColor

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

      @Deprecated public static org.bukkit.Material getBedBlock(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Get bed with color.
      Parameters:
      teamColor - team color.
      Returns:
      1.13+ material
    • 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.
    • getGlass

      @Deprecated public static org.bukkit.Material getGlass(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Get glass with team color.
      Parameters:
      teamColor - team color.
      Returns:
      1.13+ material
    • 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.
    • getGlassPane

      @Deprecated public static org.bukkit.Material getGlassPane(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Retrieve glass pane with team color.
      Parameters:
      teamColor - team color.
      Returns:
      glass pane material for 1.13+.
    • glassPaneMaterial

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

      @Deprecated public static org.bukkit.Material getGlazedTerracotta(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Get glazed terracotta with team color.
      Parameters:
      teamColor - team color.
      Returns:
      1.13+ material
    • glazedTerracottaMaterial

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

      @Deprecated public static org.bukkit.Material getWool(@NotNull @NotNull TeamColor teamColor)
      Deprecated.
      Get wool with team color.
      Parameters:
      teamColor - team color.
      Returns:
      1.13+ material.
    • woolMaterial

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