java.io.Serializable, java.lang.Comparable<AnvilDamagedEvent.DamageState>public static enum AnvilDamagedEvent.DamageState extends java.lang.Enum<AnvilDamagedEvent.DamageState>
| Modifier and Type | Method | Description |
|---|---|---|
Material |
getMaterial() |
Get block material of this state
|
static AnvilDamagedEvent.DamageState |
getState(BlockData blockData) |
Get damaged state by block data
|
static AnvilDamagedEvent.DamageState |
getState(Material material) |
Get damaged state by block material
|
static AnvilDamagedEvent.DamageState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static AnvilDamagedEvent.DamageState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnvilDamagedEvent.DamageState FULL
public static final AnvilDamagedEvent.DamageState CHIPPED
public static final AnvilDamagedEvent.DamageState DAMAGED
public static final AnvilDamagedEvent.DamageState BROKEN
public static AnvilDamagedEvent.DamageState[] values()
for (AnvilDamagedEvent.DamageState c : AnvilDamagedEvent.DamageState.values()) System.out.println(c);
public static AnvilDamagedEvent.DamageState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Material getMaterial()
public static AnvilDamagedEvent.DamageState getState(BlockData blockData)
blockData - Block datajava.lang.IllegalArgumentException - If non anvil block data is givenpublic static AnvilDamagedEvent.DamageState getState(Material material)
material - Block materialjava.lang.IllegalArgumentException - If non anvil material is givenCopyright © 2018. All rights reserved.