YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.inventory.ContainerPlayer Class Reference
Inheritance diagram for net.minecraft.inventory.ContainerPlayer:
net.minecraft.inventory.Container

Public Member Functions

 ContainerPlayer (InventoryPlayer par1InventoryPlayer, boolean par2, EntityPlayer par3EntityPlayer)
 
void onCraftMatrixChanged (IInventory par1IInventory)
 
void onCraftGuiClosed (EntityPlayer par1EntityPlayer)
 
boolean canInteractWith (EntityPlayer par1EntityPlayer)
 
ItemStack transferStackInSlot (EntityPlayer par1EntityPlayer, int par2)
 
boolean func_94530_a (ItemStack par1ItemStack, Slot par2Slot)
 
- Public Member Functions inherited from net.minecraft.inventory.Container
void addCraftingToCrafters (ICrafting par1ICrafting)
 
List getInventory ()
 
void removeCraftingFromCrafters (ICrafting par1ICrafting)
 
void detectAndSendChanges ()
 
boolean enchantItem (EntityPlayer par1EntityPlayer, int par2)
 
Slot getSlotFromInventory (IInventory par1IInventory, int par2)
 
Slot getSlot (int par1)
 
ItemStack transferStackInSlot (EntityPlayer par1EntityPlayer, int par2)
 
ItemStack slotClick (int par1, int par2, int par3, EntityPlayer par4EntityPlayer)
 
boolean func_94530_a (ItemStack par1ItemStack, Slot par2Slot)
 
void onCraftGuiClosed (EntityPlayer par1EntityPlayer)
 
void onCraftMatrixChanged (IInventory par1IInventory)
 
void putStackInSlot (int par1, ItemStack par2ItemStack)
 
void putStacksInSlots (ItemStack[] par1ArrayOfItemStack)
 
void updateProgressBar (int par1, int par2)
 
short getNextTransactionID (InventoryPlayer par1InventoryPlayer)
 
boolean isPlayerNotUsingContainer (EntityPlayer par1EntityPlayer)
 
void setPlayerIsPresent (EntityPlayer par1EntityPlayer, boolean par2)
 
boolean func_94531_b (Slot par1Slot)
 

Public Attributes

InventoryCrafting craftMatrix = new InventoryCrafting(this, 2, 2)
 
IInventory craftResult = new InventoryCraftResult()
 
boolean isLocalWorld = false
 
- Public Attributes inherited from net.minecraft.inventory.Container
List inventoryItemStacks = new ArrayList()
 
List inventorySlots = new ArrayList()
 
int windowId = 0
 

Protected Attributes

final EntityPlayer thePlayer
 
- Protected Attributes inherited from net.minecraft.inventory.Container
List crafters = new ArrayList()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.inventory.Container
static int func_94529_b (int par0)
 
static int func_94532_c (int par0)
 
static int func_94534_d (int par0, int par1)
 
static boolean func_94528_d (int par0)
 
static boolean func_94527_a (Slot par0Slot, ItemStack par1ItemStack, boolean par2)
 
static void func_94525_a (Set par0Set, int par1, ItemStack par2ItemStack, int par3)
 
static int calcRedstoneFromInventory (IInventory par0IInventory)
 
- Protected Member Functions inherited from net.minecraft.inventory.Container
Slot addSlotToContainer (Slot par1Slot)
 
void retrySlotClick (int par1, int par2, boolean par3, EntityPlayer par4EntityPlayer)
 
boolean mergeItemStack (ItemStack par1ItemStack, int par2, int par3, boolean par4)
 
void func_94533_d ()
 

Constructor & Destructor Documentation

net.minecraft.inventory.ContainerPlayer.ContainerPlayer ( InventoryPlayer  par1InventoryPlayer,
boolean  par2,
EntityPlayer  par3EntityPlayer 
)

Member Function Documentation

boolean net.minecraft.inventory.ContainerPlayer.canInteractWith ( EntityPlayer  par1EntityPlayer)
virtual
boolean net.minecraft.inventory.ContainerPlayer.func_94530_a ( ItemStack  par1ItemStack,
Slot  par2Slot 
)
void net.minecraft.inventory.ContainerPlayer.onCraftGuiClosed ( EntityPlayer  par1EntityPlayer)

Callback for when the crafting gui is closed.

void net.minecraft.inventory.ContainerPlayer.onCraftMatrixChanged ( IInventory  par1IInventory)

Callback for when the crafting matrix is changed.

ItemStack net.minecraft.inventory.ContainerPlayer.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.

Member Data Documentation

InventoryCrafting net.minecraft.inventory.ContainerPlayer.craftMatrix = new InventoryCrafting(this, 2, 2)

The crafting matrix inventory.

IInventory net.minecraft.inventory.ContainerPlayer.craftResult = new InventoryCraftResult()
boolean net.minecraft.inventory.ContainerPlayer.isLocalWorld = false

Determines if inventory manipulation should be handled.

final EntityPlayer net.minecraft.inventory.ContainerPlayer.thePlayer
protected

The documentation for this class was generated from the following file: