public class PlayerContainer_v1_7<T extends PlayerInventory_v1_7<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>> extends AContainer_v1_7<T,I,S> implements ICraftingContainer<I,S>
| Constructor and Description |
|---|
PlayerContainer_v1_7(T playerInventory,
net.lenni0451.mcstructs.recipes.ARecipeRegistry<I,S> recipeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canTakeAll(Slot<T,I,S> slot,
S stack) |
void |
close()
Handle the closing of this container.
|
void |
craftingUpdate(net.lenni0451.mcstructs.recipes.ICraftingInventory<I,S> craftingInventory)
Update the crafting inventory.
|
int |
getArmorSlotOffset(java.util.List<net.lenni0451.mcstructs.items.info.ItemType> types) |
CraftingInventory_v1_7<I,S> |
getCraftingInventory() |
CraftingResultInventory_v1_7<I,S> |
getCraftingResultInventory() |
T |
getPlayerInventory() |
net.lenni0451.mcstructs.recipes.ARecipeRegistry<I,S> |
getRecipeRegistry() |
protected void |
initSlots()
Initialize all slots of this container.
|
protected S |
moveStack(InventoryHolder<T,I,S> inventoryHolder,
int slotId) |
click, click, mergeStackaddSlot, addSlot, getSlot, getSlotCount, getWindowIdprotected void initSlots()
AContainerinitSlots in class AContainer<T extends PlayerInventory_v1_7<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>public T getPlayerInventory()
public CraftingInventory_v1_7<I,S> getCraftingInventory()
public CraftingResultInventory_v1_7<I,S> getCraftingResultInventory()
public int getArmorSlotOffset(java.util.List<net.lenni0451.mcstructs.items.info.ItemType> types)
public void craftingUpdate(net.lenni0451.mcstructs.recipes.ICraftingInventory<I,S> craftingInventory)
ICraftingContainercraftingUpdate in interface ICraftingContainer<I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>craftingInventory - The crafting inventorypublic void close()
AContainerclose in class AContainer<T extends PlayerInventory_v1_7<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>protected S moveStack(InventoryHolder<T,I,S> inventoryHolder, int slotId)
moveStack in class AContainer_v1_7<T extends PlayerInventory_v1_7<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>protected boolean canTakeAll(Slot<T,I,S> slot, S stack)
canTakeAll in class AContainer_v1_7<T extends PlayerInventory_v1_7<I,S>,I,S extends net.lenni0451.mcstructs.items.AItemStack<I,S>>