JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
org.bukkit.Material
org.bukkit.Color
This is usually used for leather armor.
org.bukkit.ChatColor
org.bukkit.DyeColor
Get the english for byte as color name.
Get the english for material as color name.
static org.bukkit.ChatColor
Get chat color by team color.
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
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
org.bukkit.Material
Get wool with team color.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
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 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.