Enum Class ArmorEquipEvent.EquipMethod
java.lang.Object
java.lang.Enum<ArmorEquipEvent.EquipMethod>
studio.magemonkey.codex.api.armor.ArmorEquipEvent.EquipMethod
- All Implemented Interfaces:
Serializable,Comparable<ArmorEquipEvent.EquipMethod>,Constable
- Enclosing class:
ArmorEquipEvent
-
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 consuming a held itemWhen 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 using the dropping key (Q by default)When changing the held slot, hence changing the item equipped in the main handWhen 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 class with the specified name.static ArmorEquipEvent.EquipMethod[]values()Returns an array containing the constants of this enum class, 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 -
HELD_SLOT_CHANGE
When changing the held slot, hence changing the item equipped in the main hand -
DROP
When using the dropping key (Q by default) -
CONSUME
When consuming a held item
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException- if the argument is null
-