setItem

public abstract void setItem(int index, ItemStack item)

Stores the ItemStack at the given index of the inventory.

Parameters

index

The index where to put the ItemStack

item

The ItemStack to set