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 |
---|---|
void |
addListener(IContainerListener listener) |
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
detectAndSendChanges() |
InventoryMerchant |
getMerchantInventory() |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
setCurrentRecipeIndex(int currentRecipeIndex) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
void |
updateProgressBar(int id,
int data) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, putStacksInSlots, removeListener, resetDrag, retrySlotClick, setCanCraft, slotClick
public ContainerMerchant(InventoryPlayer playerInventory, IMerchant merchant, World worldIn)
public InventoryMerchant getMerchantInventory()
public void addListener(IContainerListener listener)
addListener
in class Container
public void detectAndSendChanges()
detectAndSendChanges
in class Container
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void setCurrentRecipeIndex(int currentRecipeIndex)
public void updateProgressBar(int id, int data)
updateProgressBar
in class Container
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
@Nullable public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container
public void onContainerClosed(EntityPlayer playerIn)
onContainerClosed
in class Container