ItemStack.getEquipmentSlot

Returns the slot name of where this item is used
overload 1:
ItemStack:getEquipmentSlot()
Method Property Fluent Description Representation
Return Value a String
a a