net.minecraft.inventory
Class ContainerMerchant
java.lang.Object
net.minecraft.inventory.Container
net.minecraft.inventory.ContainerMerchant
public class ContainerMerchant
- extends Container
Methods inherited from class net.minecraft.inventory.Container |
enchantItem, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick |
ContainerMerchant
public ContainerMerchant(InventoryPlayer par1InventoryPlayer,
IMerchant par2IMerchant,
World par3World)
getMerchantInventory
public InventoryMerchant getMerchantInventory()
addCraftingToCrafters
public void addCraftingToCrafters(ICrafting par1ICrafting)
- Overrides:
addCraftingToCrafters
in class Container
detectAndSendChanges
public void detectAndSendChanges()
- Looks for changes made in the container, sends them to every listener.
- Overrides:
detectAndSendChanges
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
transferStackInSlot
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer,
int par2)
- Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.
- Overrides:
transferStackInSlot
in class Container
onCraftGuiClosed
public void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
- Callback for when the crafting gui is closed.
- Overrides:
onCraftGuiClosed
in class Container