Enum Class ColoredMaterial
- All Implemented Interfaces:
Serializable
,Comparable<ColoredMaterial>
,Constable
This class holds a few ordered
Lists
that hold colored variants
of Material
.- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThisList
contains all carpet colors ordered by their appearance ingame.ThisList
contains all concrete colors ordered by their appearance ingame.ThisList
contains all glazed terracotta colors ordered by their appearance ingame.ThisList
contains all shulker box colors ordered by their appearance ingame.ThisList
contains all stained glass colors ordered by their appearance ingame.ThisList
contains all stained glass pane colors ordered by their appearance ingame.ThisList
contains all terracotta colors ordered by their appearance ingame.ThisList
contains all wool colors ordered by their appearance ingame. -
Method Summary
Modifier and TypeMethodDescriptionList
<org.bukkit.Material> asList()
org.bukkit.Material
get
(int index) org.bukkit.Material
get
(org.bukkit.DyeColor color) static ColoredMaterial
Returns the enum constant of this class with the specified name.static ColoredMaterial[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WOOL
ThisList
contains all wool colors ordered by their appearance ingame. -
CARPET
ThisList
contains all carpet colors ordered by their appearance ingame. -
STAINED_GLASS
ThisList
contains all stained glass colors ordered by their appearance ingame. -
STAINED_GLASS_PANE
ThisList
contains all stained glass pane colors ordered by their appearance ingame. -
TERRACOTTA
ThisList
contains all terracotta colors ordered by their appearance ingame. -
GLAZED_TERRACOTTA
ThisList
contains all glazed terracotta colors ordered by their appearance ingame. -
CONCRETE
ThisList
contains all concrete colors ordered by their appearance ingame. -
SHULKER_BOX
ThisList
contains all shulker box colors ordered by their appearance ingame.
-
-
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
-
asList
-
get
@Nonnull public org.bukkit.Material get(int index) -
get
public org.bukkit.Material get(@Nonnull org.bukkit.DyeColor color)
-