HostAPI.getScreenSlot

Gets the item in a screen slot
The slot is either their numerical id (0 indexed) or the slot string,
as used in the /item command
If the player is not currently in a screen,
the screen has no slots, or the slot index is greater than the maximum, returns nil
overload 1:
host:getScreenSlot(slot)
Method Property Fluent Description Representation
slot accepts a String
Return Value an ItemStack
overload 2:
host:getScreenSlot(slot)
Method Property Fluent Description Representation
slot accepts an Integer
Return Value an ItemStack
a a