IContainer
An IContainer is an item container that is able to hold several itemStacks such as a chest.
ZenGetter/Setter
container.containerSizereturns the container size as intcontainer.getStack(int index)returns the IItemStack at the given index.container.setStack(int index, IItemStack stack)sets the IItemStack at the given index.container.asString()container as stringexecutestoStringon the container object.
Iterable<IItemStack>
An IContainer is an Iterable<IItemStack>.
This means that you can use a for-loop on the container to iterate over its IItemStacks.