Buy Me a Coffee at ko-fi.com

Gets an ItemStack for the item in the given slot
For the player, slots are indexed with 1 as the main hand, 2 as the off hand, and 3,4,5,6 as the 4 armor slots from the boots to the helmet
If an invalid slot number is given, this will return nil

overload 1:
EntityAPI.getItem(index: Integer): ItemStack | nil
typings.-672261858typings.59683746
Method PropertyFluent DescriptionRepresentation
index accepts
Return Value