public class CraftingInventory_v1_7<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>> extends java.lang.Object implements IInventory_v1_7<I,S>, net.lenni0451.mcstructs.recipes.ICraftingInventory<I,S>
| Constructor and Description |
|---|
CraftingInventory_v1_7(ICraftingContainer<I,S> craftingContainer,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
ICraftingContainer<I,S> |
getCraftingContainer() |
int |
getHeight() |
int |
getSize() |
S |
getStack(int slotId)
Get the item stack in the given slot.
|
S |
getStack(int row,
int column) |
S[] |
getStacks() |
int |
getWidth() |
void |
setStack(int slotId,
S stack)
Set the item stack in the given slot.
|
S |
split(int slotId,
int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmaxStackCount, onUpdatepublic CraftingInventory_v1_7(ICraftingContainer<I,S> craftingContainer, int width, int height)
public ICraftingContainer<I,S> getCraftingContainer()
public int getWidth()
public int getHeight()
public S[] getStacks()
public int getSize()
public S getStack(int slotId)
IInventorygetStack in interface IInventory<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>getStack in interface net.lenni0451.mcstructs.recipes.ICraftingInventory<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>slotId - The slot idpublic void setStack(int slotId,
S stack)
IInventorypublic S split(int slotId, int count)