public static enum AnvilDamagedEvent.DamageState extends Enum<AnvilDamagedEvent.DamageState>
Modifier and Type | Method and Description |
---|---|
@NotNull Material |
getMaterial()
Get block material of this state
|
static @NotNull AnvilDamagedEvent.DamageState |
getState(@Nullable BlockData blockData)
Get damaged state by block data
|
static @NotNull AnvilDamagedEvent.DamageState |
getState(@Nullable Material material)
Get damaged state by block material
|
static AnvilDamagedEvent.DamageState |
valueOf(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(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 null@NotNull public @NotNull Material getMaterial()
@NotNull public static @NotNull AnvilDamagedEvent.DamageState getState(@Nullable @Nullable BlockData blockData)
blockData
- Block dataIllegalArgumentException
- If non anvil block data is given@NotNull public static @NotNull AnvilDamagedEvent.DamageState getState(@Nullable @Nullable Material material)
material
- Block materialIllegalArgumentException
- If non anvil material is givenCopyright © 2021. All rights reserved.