net.minecraft.inventory
Class ContainerPlayer

java.lang.Object
  extended by net.minecraft.inventory.Container
      extended by net.minecraft.inventory.ContainerPlayer

public class ContainerPlayer
extends Container


Field Summary
 InventoryCrafting craftMatrix
          The crafting matrix inventory.
 IInventory craftResult
           
 boolean isLocalWorld
          Determines if inventory manipulation should be handled.
 
Fields inherited from class net.minecraft.inventory.Container
inventoryItemStacks, inventorySlots, windowId
 
Constructor Summary
ContainerPlayer(InventoryPlayer par1InventoryPlayer, boolean par2, EntityPlayer par3EntityPlayer)
           
 
Method Summary
 boolean canInteractWith(EntityPlayer par1EntityPlayer)
           
 void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
          Callback for when the crafting gui 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.
 
Methods inherited from class net.minecraft.inventory.Container
addCraftingToCrafters, detectAndSendChanges, enchantItem, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick, updateProgressBar
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

craftMatrix

public InventoryCrafting craftMatrix
The crafting matrix inventory.


craftResult

public IInventory craftResult

isLocalWorld

public boolean isLocalWorld
Determines if inventory manipulation should be handled.

Constructor Detail

ContainerPlayer

public ContainerPlayer(InventoryPlayer par1InventoryPlayer,
                       boolean par2,
                       EntityPlayer par3EntityPlayer)
Method Detail

onCraftMatrixChanged

public void onCraftMatrixChanged(IInventory par1IInventory)
Callback for when the crafting matrix is changed.

Overrides:
onCraftMatrixChanged in class Container

onCraftGuiClosed

public void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
Callback for when the crafting gui is closed.

Overrides:
onCraftGuiClosed in class Container

canInteractWith

public boolean canInteractWith(EntityPlayer par1EntityPlayer)
Specified by:
canInteractWith in class Container

transferStackInSlot

public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer,
                                     int par2)
Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.

Overrides:
transferStackInSlot in class Container