ArmorEquipEvent

The Armor Equip Event is an event called when armor on a player is taken off, put on, or switched.

Description
The ArmorEquipEvent is a class authored by Arnah in 2015 to help with finding when a player's armor changes. EnchantmentSolution modifies the class slightly, but it still uses the same foundation. It comes with an equip method, an item slot type, and two itemstacks that track the old armor piece and new armor piece.

The EquipMethod comes with a bunch of types: These help keep track of the different ways players can equip armor.
 * SHIFT_CLICK
 * DRAG
 * PICK_DROP
 * HOTBAR
 * HOTBAR_SWAP
 * DISPENSER
 * BROKE
 * DEATH
 * JOIN

Constructor
ArmorEquipEvent(final Player player, final EquipMethod equipType, final ItemSlotType type, final ItemStack oldArmorPiece, final ItemStack newArmorPiece)
 * // Player player - the player equipping/unequipping the armor
 * // EquipMethod equipType - the method the armor was equipped
 * // ItemSlotType type - the slot to which the item is being equipped (MAIN_HAND, OFF_HAND, HELMET, CHESTPLATE, LEGGINGS, BOOTS)
 * // ItemStack oldArmorPiece - the armor being unequipped
 * // ItemStack newArmorPiece - the armor being equipped

Implements
Cancellable

Extends
PlayerEvent

ItemSlotType getType
Returns the ItemSlotType of this event.

ItemStack getOldArmorPiece
Gets the old armor piece (the armor being unequipped)

ItemStack getNewArmorPiece
Gets the new armor piece (the armor being equipped)

EquipMethod getEquipMethod
Gets the EquipMethod used to equip and/or unequip items.