Package fr.royalpha.revenge.core.legacy
Enum LegacyMaterial
- java.lang.Object
-
- java.lang.Enum<LegacyMaterial>
-
- fr.royalpha.revenge.core.legacy.LegacyMaterial
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LegacyMaterial>
,java.lang.constant.Constable
public enum LegacyMaterial extends java.lang.Enum<LegacyMaterial>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIREWORK
PLAYER_SKULL_ITEM
STAINED_GLASS
STAINED_GLASS_PANE
WOODEN_SWORD
WOOL
-
Method Summary
Modifier and Type Method Description org.bukkit.Material
getColoredMaterial(org.bukkit.DyeColor color)
org.bukkit.Material
getMaterial()
static LegacyMaterial
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LegacyMaterial[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIREWORK
public static final LegacyMaterial FIREWORK
-
WOODEN_SWORD
public static final LegacyMaterial WOODEN_SWORD
-
WOOL
public static final LegacyMaterial WOOL
-
STAINED_GLASS
public static final LegacyMaterial STAINED_GLASS
-
STAINED_GLASS_PANE
public static final LegacyMaterial STAINED_GLASS_PANE
-
PLAYER_SKULL_ITEM
public static final LegacyMaterial PLAYER_SKULL_ITEM
-
-
Method Detail
-
values
public static LegacyMaterial[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LegacyMaterial valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMaterial
public org.bukkit.Material getMaterial()
-
getColoredMaterial
public org.bukkit.Material getColoredMaterial(org.bukkit.DyeColor color)
-
-