Package net.minecraft.src
Class ContainerMerchant
java.lang.Object
net.minecraft.src.Container
net.minecraft.src.ContainerMerchant
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintFields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionContainerMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer par1EntityPlayer) voidLooks for changes made in the container, sends them to every listener.voidonContainerClosed(EntityPlayer par1EntityPlayer) Called when the container is closed.voidonCrafterAdded(ICrafting crafter) voidonCraftGuiOpened(ICrafting par1ICrafting) voidonCraftMatrixChanged(IInventory par1IInventory) Callback for when the crafting matrix is changed.voidsendProgressBarUpdateToAllCrafters(int iVariableIndex, int iValue) voidsetCurrentRecipeIndex(int par1) transferStackInSlot(EntityPlayer player, int slotNum) Called when a player shift-clicks on a slot.voidupdateProgressBar(int iVariableIndex, int iValue) Methods inherited from class net.minecraft.src.Container
addSlotToContainer, attemptToMergeWithSlot, attemptToMergeWithSlotIfEmpty, calcRedstoneFromInventory, canDragIntoSlot, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, mergeItemStack, mergeItemStack, mergeItemStackFavoringHotbar, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClick
-
Field Details
-
associatedVillagerTradeLevel
public int associatedVillagerTradeLevel -
associatedVillagerTradeXP
public int associatedVillagerTradeXP -
associatedVillagerTradeMaxXP
public int associatedVillagerTradeMaxXP
-
-
Constructor Details
-
ContainerMerchant
public ContainerMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World)
-
-
Method Details
-
getMerchantInventory
-
onCraftGuiOpened
- Overrides:
onCraftGuiOpenedin classContainer
-
detectAndSendChanges
public void detectAndSendChanges()Looks for changes made in the container, sends them to every listener.- Overrides:
detectAndSendChangesin classContainer
-
onCraftMatrixChanged
Callback for when the crafting matrix is changed.- Overrides:
onCraftMatrixChangedin classContainer
-
setCurrentRecipeIndex
public void setCurrentRecipeIndex(int par1) -
canInteractWith
- Specified by:
canInteractWithin classContainer
-
transferStackInSlot
Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.- Overrides:
transferStackInSlotin classContainer
-
onContainerClosed
Called when the container is closed.- Overrides:
onContainerClosedin classContainer
-
sendProgressBarUpdateToAllCrafters
public void sendProgressBarUpdateToAllCrafters(int iVariableIndex, int iValue) -
onCrafterAdded
-
updateProgressBar
@Environment(CLIENT) public void updateProgressBar(int iVariableIndex, int iValue) - Overrides:
updateProgressBarin classContainer
-