public class ContainerMerchant extends Container
crafters, inventoryItemStacks, inventorySlots, windowId| Constructor and Description |
|---|
ContainerMerchant(InventoryPlayer playerInventory,
IMerchant merchant,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
detectAndSendChanges()
Looks for changes made in the container, sends them to every listener.
|
InventoryMerchant |
getMerchantInventory() |
void |
onContainerClosed(EntityPlayer playerIn)
Called when the container is closed.
|
void |
onCraftGuiOpened(ICrafting listener) |
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
void |
setCurrentRecipeIndex(int currentRecipeIndex) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index)
Take a stack from the specified inventory slot.
|
void |
updateProgressBar(int id,
int data) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, enchantItem, extractDragMode, func_94534_d, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, resetDrag, retrySlotClick, setCanCraft, slotClickpublic ContainerMerchant(InventoryPlayer playerInventory, IMerchant merchant, World worldIn)
public InventoryMerchant getMerchantInventory()
public void onCraftGuiOpened(ICrafting listener)
onCraftGuiOpened in class Containerpublic void detectAndSendChanges()
detectAndSendChanges in class Containerpublic void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged in class Containerpublic void setCurrentRecipeIndex(int currentRecipeIndex)
public void updateProgressBar(int id,
int data)
updateProgressBar in class Containerpublic boolean canInteractWith(EntityPlayer playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot in class Containerpublic void onContainerClosed(EntityPlayer playerIn)
onContainerClosed in class Container