Package net.glowstone.inventory
Enum Class MaterialToolType
- All Implemented Interfaces:
Serializable,Comparable<MaterialToolType>,Constable,MaterialMatcher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.bukkit.Material material) Returns true if the givenMaterialmatches the conditions of this MaterialMatcher.static MaterialToolTypeReturns the enum constant of this class with the specified name.static MaterialToolType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WOOD
-
STONE
-
IRON
-
GOLD
-
DIAMOND
-
-
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
-
matches
public boolean matches(org.bukkit.Material material) Description copied from interface:MaterialMatcherReturns true if the givenMaterialmatches the conditions of this MaterialMatcher.- Specified by:
matchesin interfaceMaterialMatcher- Parameters:
material- theMaterialto check- Returns:
- true if it matches, false otherwise
-