get Item In Slot
Gets the item currently in the entity's specified inventory slot. 0 for main hand, 1-4 for armor (2 for offhand in 1.12.2, and everything else shifted over).
Return
the item in said slot
Parameters
slot
the slot to access