public class ContainerPlayer extends Container
Modifier and Type | Field and Description |
---|---|
InventoryCrafting |
craftMatrix
The crafting matrix inventory.
|
IInventory |
craftResult |
boolean |
isLocalWorld
Determines if inventory manipulation should be handled.
|
crafters, inventoryItemStacks, inventorySlots, windowId
Constructor and Description |
---|
ContainerPlayer(InventoryPlayer playerInventory,
boolean localWorld,
EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot p_94530_2_)
Called to determine if the current slot is valid for the stack merging (double-click) code.
|
void |
onContainerClosed(EntityPlayer playerIn)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index)
Take a stack from the specified inventory slot.
|
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, func_94534_d, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onCraftGuiOpened, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, resetDrag, retrySlotClick, setCanCraft, slotClick, updateProgressBar
public InventoryCrafting craftMatrix
public IInventory craftResult
public boolean isLocalWorld
public ContainerPlayer(InventoryPlayer playerInventory, boolean localWorld, EntityPlayer player)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void onContainerClosed(EntityPlayer playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container
public boolean canMergeSlot(ItemStack stack, Slot p_94530_2_)
canMergeSlot
in class Container