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.
|
inventoryItemStacks, inventorySlots, windowId
Constructor and Description |
---|
ContainerPlayer(InventoryPlayer par1InventoryPlayer,
boolean par2,
EntityPlayer par3EntityPlayer) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(EntityPlayer par1EntityPlayer) |
boolean |
func_94530_a(ItemStack par1ItemStack,
Slot par2Slot) |
void |
onContainerClosed(EntityPlayer par1EntityPlayer)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory par1IInventory)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer par1EntityPlayer,
int par2)
Called when a player shift-clicks on a slot.
|
addCraftingToCrafters, calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick, updateProgressBar
public InventoryCrafting craftMatrix
public IInventory craftResult
public boolean isLocalWorld
public ContainerPlayer(InventoryPlayer par1InventoryPlayer, boolean par2, EntityPlayer par3EntityPlayer)
public void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged
in class Container
public void onContainerClosed(EntityPlayer par1EntityPlayer)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot
in class Container
public boolean func_94530_a(ItemStack par1ItemStack, Slot par2Slot)
func_94530_a
in class Container