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

public static enum ArmorEquipEvent.EquipMethod extends Enum<ArmorEquipEvent.EquipMethod>
  • Enum Constant Details

    • SHIFT_CLICK

      public static final ArmorEquipEvent.EquipMethod SHIFT_CLICK
      When you shift click an armor piece to equip or unequip
    • DRAG

      public static final ArmorEquipEvent.EquipMethod DRAG
      When you drag and drop the item to equip or unequip
    • PICK_DROP

      public static final ArmorEquipEvent.EquipMethod PICK_DROP
      When you manually equip or unequip the item. Use to be DRAG
    • HOTBAR

      public static final ArmorEquipEvent.EquipMethod HOTBAR
      When you right-click an armor piece in the hotbar without the inventory open to equip.
    • HOTBAR_SWAP

      public static final ArmorEquipEvent.EquipMethod HOTBAR_SWAP
      When you press the hotbar slot number while hovering over the armor slot to equip or unequip
    • DISPENSER

      public static final ArmorEquipEvent.EquipMethod DISPENSER
      When in range of a dispenser that shoots an armor piece to equip.
      Requires the spigot version to have BlockDispenseArmorEvent implemented.
    • BROKE

      public static final ArmorEquipEvent.EquipMethod BROKE
      When an armor piece is removed due to it losing all durability.
    • DEATH

      public static final ArmorEquipEvent.EquipMethod DEATH
      When you die causing all armor to unequip
    • HELD_SLOT_CHANGE

      public static final ArmorEquipEvent.EquipMethod HELD_SLOT_CHANGE
      When changing the held slot, hence changing the item equipped in the main hand
    • DROP

      public static final ArmorEquipEvent.EquipMethod DROP
      When using the dropping key (Q by default)
    • CONSUME

      public static final ArmorEquipEvent.EquipMethod CONSUME
      When consuming a held item
  • Method Details

    • values

      public static ArmorEquipEvent.EquipMethod[] 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

      public static ArmorEquipEvent.EquipMethod valueOf(String name)
      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 name
      NullPointerException - if the argument is null