public enum AnvilDamage extends Enum<AnvilDamage>
| Enum Constant and Description |
|---|
BROKEN |
SLIGHTLY_DAMAGED |
UNDAMAGED |
VERY_DAMAGED |
| Modifier and Type | Method and Description |
|---|---|
static AnvilDamage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnvilDamage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnvilDamage UNDAMAGED
public static final AnvilDamage SLIGHTLY_DAMAGED
public static final AnvilDamage VERY_DAMAGED
public static final AnvilDamage BROKEN
public static AnvilDamage[] values()
for (AnvilDamage c : AnvilDamage.values()) System.out.println(c);
public static AnvilDamage 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 nullCopyright © 2020. All rights reserved.