public class ContainerMerchant extends Container
inventoryItemStacks, inventorySlots, listeners, windowId| Constructor and Description |
|---|
ContainerMerchant(InventoryPlayer playerInventory,
IMerchant merchant,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
InventoryMerchant |
getMerchantInventory() |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
setCurrentRecipeIndex(int currentRecipeIndex) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClick, updateProgressBarpublic ContainerMerchant(InventoryPlayer playerInventory, IMerchant merchant, World worldIn)
public InventoryMerchant getMerchantInventory()
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged in class Containerpublic void setCurrentRecipeIndex(int currentRecipeIndex)
public 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