public interface IContainer extends java.lang.Iterable<IItemStack>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString() |
int |
getContainerSize()
Gets the container size.
|
java.lang.Object |
getInternal() |
IItemStack |
getStack(int i)
Gets the item stack at the given position.
|
void |
setStack(int i,
IItemStack stack)
Sets the item stack at the given position.
|
int getContainerSize()
IItemStack getStack(int i)
i
- stack positionvoid setStack(int i, IItemStack stack)
i
- stack positionstack
- contents, or null to set an empty stackjava.lang.String asString()
java.lang.Object getInternal()