net.minecraft.src
Class ContainerMerchant

java.lang.Object
  extended by net.minecraft.src.Container
      extended by net.minecraft.src.ContainerMerchant

public class ContainerMerchant
extends Container


Field Summary
 
Fields inherited from class net.minecraft.src.Container
inventoryItemStacks, inventorySlots, windowId
 
Constructor Summary
ContainerMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World)
           
 
Method Summary
 void addCraftingToCrafters(ICrafting par1ICrafting)
           
 boolean canInteractWith(EntityPlayer par1EntityPlayer)
           
 ItemStack func_82846_b(EntityPlayer par1EntityPlayer, int par2)
           
 InventoryMerchant getMerchantInventory()
           
 void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
          Callback for when the crafting gui is closed.
 void onCraftMatrixChanged(IInventory par1IInventory)
          Callback for when the crafting matrix is changed.
 void setCurrentRecipeIndex(int par1)
           
 void updateCraftingResults()
          Updates crafting matrix; called from onCraftMatrixChanged.
 void updateProgressBar(int par1, int par2)
           
 
Methods inherited from class net.minecraft.src.Container
enchantItem, func_82847_b, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, setPlayerIsPresent, slotClick
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerMerchant

public ContainerMerchant(InventoryPlayer par1InventoryPlayer,
                         IMerchant par2IMerchant,
                         World par3World)
Method Detail

getMerchantInventory

public InventoryMerchant getMerchantInventory()

addCraftingToCrafters

public void addCraftingToCrafters(ICrafting par1ICrafting)
Overrides:
addCraftingToCrafters in class Container

updateCraftingResults

public void updateCraftingResults()
Updates crafting matrix; called from onCraftMatrixChanged. Args: none

Overrides:
updateCraftingResults in class Container

onCraftMatrixChanged

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

Overrides:
onCraftMatrixChanged in class Container

setCurrentRecipeIndex

public void setCurrentRecipeIndex(int par1)

updateProgressBar

public void updateProgressBar(int par1,
                              int par2)
Overrides:
updateProgressBar in class Container

canInteractWith

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

func_82846_b

public ItemStack func_82846_b(EntityPlayer par1EntityPlayer,
                              int par2)
Overrides:
func_82846_b in class Container

onCraftGuiClosed

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

Overrides:
onCraftGuiClosed in class Container