Package net.minecraft.world.inventory
Class MerchantMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.MerchantMenu
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static intprivate booleanprivate static intprivate static intprivate intprotected static intprotected static intprotected static intprivate static intprivate static intprivate static intprivate booleanprivate MerchantContainerprivate Merchantprivate static intprivate static intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenuCARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
- 
Constructor SummaryConstructorsConstructorDescriptionMerchantMenu(int p_40033_, Inventory p_40034_)MerchantMenu(int p_40036_, Inventory p_40037_, Merchant p_40038_)
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleancanTakeItemForPickAll(ItemStack p_40044_, Slot p_40045_)intintintprivate voidmoveFromInventoryToPaymentSlot(int p_40061_, ItemStack p_40062_)private voidquickMoveStack(Player p_40053_, int p_40054_)voidvoidsetCanRestock(boolean p_40059_)voidsetMerchantLevel(int p_40070_)voidsetOffers(MerchantOffers p_40047_)voidsetSelectionHint(int p_40064_)voidsetShowProgressBar(boolean p_40049_)voidsetXp(int p_40067_)booleanvoidslotsChanged(Container p_40040_)booleanstillValid(Player p_40042_)voidtryMoveItems(int p_40073_)Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenuaddDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
- 
Field Details- 
PAYMENT1_SLOTprotected static final int PAYMENT1_SLOT- See Also:
- Constant Field Values
 
- 
PAYMENT2_SLOTprotected static final int PAYMENT2_SLOT- See Also:
- Constant Field Values
 
- 
RESULT_SLOTprotected static final int RESULT_SLOT- See Also:
- Constant Field Values
 
- 
INV_SLOT_STARTprivate static final int INV_SLOT_START- See Also:
- Constant Field Values
 
- 
INV_SLOT_ENDprivate static final int INV_SLOT_END- See Also:
- Constant Field Values
 
- 
USE_ROW_SLOT_STARTprivate static final int USE_ROW_SLOT_START- See Also:
- Constant Field Values
 
- 
USE_ROW_SLOT_ENDprivate static final int USE_ROW_SLOT_END- See Also:
- Constant Field Values
 
- 
SELLSLOT1_Xprivate static final int SELLSLOT1_X- See Also:
- Constant Field Values
 
- 
SELLSLOT2_Xprivate static final int SELLSLOT2_X- See Also:
- Constant Field Values
 
- 
BUYSLOT_Xprivate static final int BUYSLOT_X- See Also:
- Constant Field Values
 
- 
ROW_Yprivate static final int ROW_Y- See Also:
- Constant Field Values
 
- 
trader
- 
tradeContainer
- 
merchantLevelprivate int merchantLevel
- 
showProgressBarprivate boolean showProgressBar
- 
canRestockprivate boolean canRestock
 
- 
- 
Constructor Details- 
MerchantMenu
- 
MerchantMenu
 
- 
- 
Method Details- 
setShowProgressBarpublic void setShowProgressBar(boolean p_40049_)
- 
slotsChanged- Overrides:
- slotsChangedin class- AbstractContainerMenu
 
- 
setSelectionHintpublic void setSelectionHint(int p_40064_)
- 
stillValid- Specified by:
- stillValidin class- AbstractContainerMenu
 
- 
getTraderXppublic int getTraderXp()
- 
getFutureTraderXppublic int getFutureTraderXp()
- 
setXppublic void setXp(int p_40067_)
- 
getTraderLevelpublic int getTraderLevel()
- 
setMerchantLevelpublic void setMerchantLevel(int p_40070_)
- 
setCanRestockpublic void setCanRestock(boolean p_40059_)
- 
canRestockpublic boolean canRestock()
- 
canTakeItemForPickAll- Overrides:
- canTakeItemForPickAllin class- AbstractContainerMenu
 
- 
quickMoveStack- Overrides:
- quickMoveStackin class- AbstractContainerMenu
 
- 
playTradeSoundprivate void playTradeSound()
- 
removed- Overrides:
- removedin class- AbstractContainerMenu
 
- 
tryMoveItemspublic void tryMoveItems(int p_40073_)
- 
moveFromInventoryToPaymentSlot
- 
setOffers
- 
getOffers
- 
showProgressBarpublic boolean showProgressBar()
 
-