getItem

fun getItem(slot: Int): @Nullable ItemStack?

Gets the item at the specified slot

Return

The item at the slot, or null if empty

Since

2.0.0

Parameters

slot

The slot number to get the item from