Enum Class PlayerArmorChangeEvent.SlotType
java.lang.Object
java.lang.Enum<PlayerArmorChangeEvent.SlotType>
com.destroystokyo.paper.event.player.PlayerArmorChangeEvent.SlotType
- All Implemented Interfaces:
- Serializable,- Comparable<PlayerArmorChangeEvent.SlotType>,- Constable
- Enclosing class:
- PlayerArmorChangeEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptiongetByMaterial(@NotNull Material material) Gets the type of slot via the specified materialgetTypes()Gets an immutable set of all allowed material types that can be placed in an armor slot.static booleanisEquipable(@NotNull Material material) Gets whether or not this material can be equipped to a slotReturns the enum constant of this class with the specified name.static PlayerArmorChangeEvent.SlotType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
HEAD
- 
CHEST
- 
LEGS
- 
FEET
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getTypesGets an immutable set of all allowed material types that can be placed in an armor slot.- Returns:
- immutable set of material types
 
- 
getByMaterial@Nullable public static @Nullable PlayerArmorChangeEvent.SlotType getByMaterial(@NotNull @NotNull Material material) Gets the type of slot via the specified material- Parameters:
- material- material to get slot by
- Returns:
- slot type the material will go in, or null if it won't
 
- 
isEquipableGets whether or not this material can be equipped to a slot- Parameters:
- material- material to check
- Returns:
- whether or not this material can be equipped
 
 
-