public class ContainerMerchant extends Container
inventoryItemStacks, inventorySlots, windowId| Constructor and Description |
|---|
ContainerMerchant(InventoryPlayer par1InventoryPlayer,
IMerchant par2IMerchant,
World par3World) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCraftingToCrafters(ICrafting par1ICrafting) |
boolean |
canInteractWith(EntityPlayer par1EntityPlayer) |
void |
detectAndSendChanges()
Looks for changes made in the container, sends them to every listener.
|
InventoryMerchant |
getMerchantInventory() |
void |
onContainerClosed(EntityPlayer par1EntityPlayer)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory par1IInventory)
Callback for when the crafting matrix is changed.
|
void |
setCurrentRecipeIndex(int par1) |
ItemStack |
transferStackInSlot(EntityPlayer par1EntityPlayer,
int par2)
Called when a player shift-clicks on a slot.
|
void |
updateProgressBar(int par1,
int par2) |
calcRedstoneFromInventory, canDragIntoSlot, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClickpublic ContainerMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World)
public InventoryMerchant getMerchantInventory()
public void addCraftingToCrafters(ICrafting par1ICrafting)
addCraftingToCrafters in class Containerpublic void detectAndSendChanges()
detectAndSendChanges in class Containerpublic void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged in class Containerpublic void setCurrentRecipeIndex(int par1)
public void updateProgressBar(int par1,
int par2)
updateProgressBar in class Containerpublic boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot in class Containerpublic void onContainerClosed(EntityPlayer par1EntityPlayer)
onContainerClosed in class Container