public abstract class AContainer<T extends IInventory<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>
extends java.lang.Object
| Constructor and Description |
|---|
AContainer(int windowId) |
| Modifier and Type | Method and Description |
|---|---|
protected Slot<T,I,S> |
addSlot(IInventory<I,S> inventory,
int inventoryIndex,
java.util.function.BiFunction<Slot<T,I,S>,S,java.lang.Integer> acceptor) |
protected <SLOT extends Slot<T,I,S>> |
addSlot(java.util.function.IntFunction<SLOT> slotSupplier) |
abstract S |
click(InventoryHolder<T,I,S> inventoryHolder,
int slotId,
int button,
InventoryAction action) |
void |
close() |
Slot<T,I,S> |
getSlot(int index) |
int |
getSlotCount() |
int |
getWindowId() |
protected abstract void |
initSlots() |
protected abstract void initSlots()
public int getWindowId()
protected Slot<T,I,S> addSlot(IInventory<I,S> inventory, int inventoryIndex, java.util.function.BiFunction<Slot<T,I,S>,S,java.lang.Integer> acceptor)
protected <SLOT extends Slot<T,I,S>> SLOT addSlot(java.util.function.IntFunction<SLOT> slotSupplier)
public int getSlotCount()
public abstract S click(InventoryHolder<T,I,S> inventoryHolder, int slotId, int button, InventoryAction action)
public void close()