Serializable
, Comparable<PlayerArmorChangeEvent.SlotType>
public static enum PlayerArmorChangeEvent.SlotType extends Enum<PlayerArmorChangeEvent.SlotType>
Modifier and Type | Method | Description |
---|---|---|
static @Nullable PlayerArmorChangeEvent.SlotType |
getByMaterial(@NotNull Material material) |
Gets the type of slot via the specified material
|
@NotNull Set<Material> |
getTypes() |
Gets an immutable set of all allowed material types that can be placed in an
armor slot.
|
static boolean |
isEquipable(@NotNull Material material) |
Gets whether or not this material can be equipped to a slot
|
static PlayerArmorChangeEvent.SlotType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PlayerArmorChangeEvent.SlotType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerArmorChangeEvent.SlotType HEAD
public static final PlayerArmorChangeEvent.SlotType CHEST
public static final PlayerArmorChangeEvent.SlotType LEGS
public static final PlayerArmorChangeEvent.SlotType FEET
public static PlayerArmorChangeEvent.SlotType[] values()
for (PlayerArmorChangeEvent.SlotType c : PlayerArmorChangeEvent.SlotType.values()) System.out.println(c);
public static PlayerArmorChangeEvent.SlotType 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 Set<Material> getTypes()
@Nullable public static @Nullable PlayerArmorChangeEvent.SlotType getByMaterial(@NotNull @NotNull Material material)
material
- material to get slot bypublic static boolean isEquipable(@NotNull @NotNull Material material)
material
- material to checkCopyright © 2020. All rights reserved.