public class ContainerPlayer extends Container
Modifier and Type | Field and Description |
---|---|
InventoryCrafting |
craftMatrix |
IInventory |
craftResult |
boolean |
isLocalWorld |
inventoryItemStacks, inventorySlots, listeners, 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 slotIn) |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, putStacksInSlots, removeListener, 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
@Nullable public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
in class Container