public enum ClothType extends Enum<ClothType> implements MaterialMatcher
| Enum Constant and Description |
|---|
CHAINMAIL |
DIAMOND |
GOLD |
IRON |
LEATHER |
| 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 ClothType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClothType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClothType LEATHER
public static final ClothType CHAINMAIL
public static final ClothType IRON
public static final ClothType GOLD
public static final ClothType DIAMOND
public static ClothType[] values()
for (ClothType c : ClothType.values()) System.out.println(c);
public static ClothType 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)
MaterialMatcherMaterial matches the conditions of this MaterialMatcher.matches in interface MaterialMatchermaterial - the Material to checkCopyright © 2021. All rights reserved.