I - The type of the item (e.g. Integer)S - The type of the item stack (e.g. LegacyItemStack)public interface IInventory<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>
| Modifier and Type | Method and Description |
|---|---|
int |
getSize() |
S |
getStack(int slotId)
Get the item stack in the given slot.
|
default int |
maxStackCount() |
default void |
onUpdate()
Handle inventory updates.
|
void |
setStack(int slotId,
S stack)
Set the item stack in the given slot.
|
int getSize()
S getStack(int slotId)
slotId - The slot idvoid setStack(int slotId,
S stack)
slotId - The slot idstack - The item stackdefault int maxStackCount()
default void onUpdate()