PlayerItem

public void PlayerItem(ItemStack itemStack, PlayerItem.EquipmentSlot equipmentSlot, Player player)

Stores an instance of the custom EliteMobs values of what a player is wearing. This is used to reduce the amount of checks done by EliteMobs during combat and for passive potion effect applications. It should (largely) only update when necessary.

Parameters

itemStack

ItemStack in the equipment slot. Does not update.

equipmentSlot

Player's equipment slot. This is used to quickly access weapons and armor for the combat system. Updates when the ItemStack changes.

player

Player associated to the gear. Does not update.