An IContainer is an item container that is able to hold several itemStacks such as a chest.
container.containerSizereturns the container size as int
container.getStack(int index)returns the IItemStack at the given index.
container.setStack(int index, IItemStack stack)sets the IItemStack at the given index.
container as stringexecutes
toStringon the container object.