public static enum PlayerArmorChangeEvent.SlotType extends Enum<PlayerArmorChangeEvent.SlotType>
Modifier and Type | Method and Description |
---|---|
static PlayerArmorChangeEvent.SlotType |
getByMaterial(Material material)
Gets the type of slot via the specified material
|
Set<Material> |
getTypes()
Gets an immutable set of all allowed material types that can be placed in an
armor slot.
|
static boolean |
isEquipable(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@Nonnull public Set<Material> getTypes()
@Nullable public static PlayerArmorChangeEvent.SlotType getByMaterial(Material material)
material
- material to get slot bypublic static boolean isEquipable(Material material)
material
- material to checkCopyright © 2021. All rights reserved.