Enum Class TeamColor
- All Implemented Interfaces:
Serializable
,Comparable<TeamColor>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Material
Get bed with color.org.bukkit.Color
This is usually used for leather armor.org.bukkit.ChatColor
chat()
org.bukkit.DyeColor
dye()
static String
enName
(byte b) Get the english for byte as color name.static String
Get the english for material as color name.static org.bukkit.Material
getBedBlock
(@NotNull TeamColor teamColor) Deprecated.static org.bukkit.ChatColor
getChatColor
(TeamColor teamColor) Deprecated.static org.bukkit.ChatColor
getChatColor
(@NotNull String tColor) Get chat color by team color.static org.bukkit.Color
Deprecated.static org.bukkit.DyeColor
getDyeColor
(@NotNull String teamColor) Deprecated.static org.bukkit.Material
Deprecated.static org.bukkit.Material
getGlassPane
(@NotNull TeamColor teamColor) Deprecated.static org.bukkit.Material
getGlazedTerracotta
(@NotNull TeamColor teamColor) Deprecated.static org.bukkit.Material
Deprecated.org.bukkit.Material
Get glass with team color.org.bukkit.Material
Retrieve glass pane with team color.org.bukkit.Material
Get glazed terracotta with team color.byte
itemByte()
static byte
Deprecated.static TeamColor
Returns the enum constant of this class with the specified name.static TeamColor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.org.bukkit.Material
Get wool with team color.
-
Enum Constant Details
-
RED
-
BLUE
-
GREEN
-
YELLOW
-
AQUA
-
WHITE
-
PINK
-
GRAY
-
DARK_GREEN
-
DARK_GRAY
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getChatColor
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.- Parameters:
teamColor
- team color.- Returns:
- Chat color for this team color.
-
getDyeColor
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.- 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
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
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.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.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.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.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.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.
-