public enum MaterialToolType extends Enum<MaterialToolType> implements MaterialMatcher
Modifier and Type | Method and Description |
---|---|
boolean |
matches(org.bukkit.Material material)
Returns true if the given
Material matches the conditions of this MaterialMatcher. |
static MaterialToolType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaterialToolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaterialToolType WOOD
public static final MaterialToolType STONE
public static final MaterialToolType IRON
public static final MaterialToolType GOLD
public static final MaterialToolType DIAMOND
public static MaterialToolType[] values()
for (MaterialToolType c : MaterialToolType.values()) System.out.println(c);
public static MaterialToolType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean matches(org.bukkit.Material material)
MaterialMatcher
Material
matches the conditions of this MaterialMatcher.matches
in interface MaterialMatcher
material
- the Material
to checkCopyright © 2021. All rights reserved.