Package com.jeff_media.armorequipevent
Enum ArmorEquipEvent.EquipMethod
java.lang.Object
java.lang.Enum<ArmorEquipEvent.EquipMethod>
com.jeff_media.armorequipevent.ArmorEquipEvent.EquipMethod
- All Implemented Interfaces:
Serializable,Comparable<ArmorEquipEvent.EquipMethod>,java.lang.constant.Constable
- Enclosing class:
- ArmorEquipEvent
Represents the way of equipping or uneqipping armor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen an armor piece is removed due to it losing all durability.When you die causing all armor to unequipWhen in range of a dispenser that shoots an armor piece to equip.
Requires the spigot version to haveBlockDispenseArmorEventimplemented.When you drag and drop the item to equip or unequipWhen you right click an armor piece in the hotbar without the inventory open to equip.When you press the hotbar slot number while hovering over the armor slot to equip or unequipWhen you manually equip or unequip the item.When you shift click an armor piece to equip or unequip -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmorEquipEvent.EquipMethodReturns the enum constant of this type with the specified name.static ArmorEquipEvent.EquipMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHIFT_CLICK
When you shift click an armor piece to equip or unequip -
DRAG
When you drag and drop the item to equip or unequip -
PICK_DROP
When you manually equip or unequip the item. Use to be DRAG -
HOTBAR
When you right click an armor piece in the hotbar without the inventory open to equip. -
HOTBAR_SWAP
When you press the hotbar slot number while hovering over the armor slot to equip or unequip -
DISPENSER
When in range of a dispenser that shoots an armor piece to equip.
Requires the spigot version to haveBlockDispenseArmorEventimplemented. -
BROKE
When an armor piece is removed due to it losing all durability. -
DEATH
When you die causing all armor to unequip
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-