Class MerchantScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<MerchantMenu>
net.minecraft.client.gui.screens.inventory.MerchantScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- MenuAccess<MerchantMenu>
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Componentprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate booleanprivate static final intprivate static final intprivate static final intprivate static final ResourceLocationprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final ResourceLocationprivate static final intprivate static final ResourceLocationprivate static final int(package private) intprivate static final intprivate static final intprivate intprivate static final intprivate static final intprivate static final ResourceLocationprivate static final ResourceLocationprivate static final intprivate static final intprivate static final intprivate final MerchantScreen.TradeOfferButton[]private static final Componentprivate static final ResourceLocationFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreenhoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionMerchantScreen(MerchantMenu p_99123_, Inventory p_99124_, Component p_99125_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanScroll(int p_99141_) protected voidinit()booleanmouseClicked(double p_99131_, double p_99132_, int p_99133_) booleanmouseDragged(double p_99135_, double p_99136_, int p_99137_, double p_99138_, double p_99139_) booleanmouseScrolled(double p_99127_, double p_99128_, double p_99129_, double p_298933_) private voidvoidrender(GuiGraphics p_283487_, int p_281994_, int p_282099_, float p_281815_) private voidrenderAndDecorateCostA(GuiGraphics p_281357_, ItemStack p_283466_, ItemStack p_282046_, int p_282403_, int p_283601_) protected voidrenderBg(GuiGraphics p_283072_, float p_281275_, int p_282312_, int p_282984_) private voidrenderButtonArrows(GuiGraphics p_283020_, MerchantOffer p_281926_, int p_282752_, int p_282179_) protected voidrenderLabels(GuiGraphics p_283337_, int p_282009_, int p_283691_) private voidrenderProgressBar(GuiGraphics p_281426_, int p_283008_, int p_283085_, MerchantOffer p_282094_) private voidrenderScroller(GuiGraphics p_283030_, int p_283154_, int p_281664_, MerchantOffers p_282877_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreencheckHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderBackground, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
OUT_OF_STOCK_SPRITE
- 
EXPERIENCE_BAR_BACKGROUND_SPRITE
- 
EXPERIENCE_BAR_CURRENT_SPRITE
- 
EXPERIENCE_BAR_RESULT_SPRITE
- 
SCROLLER_SPRITE
- 
SCROLLER_DISABLED_SPRITE
- 
TRADE_ARROW_OUT_OF_STOCK_SPRITE
- 
TRADE_ARROW_SPRITE
- 
DISCOUNT_STRIKETHRUOGH_SPRITE
- 
VILLAGER_LOCATION
- 
TEXTURE_WIDTHprivate static final int TEXTURE_WIDTH- See Also:
 
- 
TEXTURE_HEIGHTprivate static final int TEXTURE_HEIGHT- See Also:
 
- 
MERCHANT_MENU_PART_Xprivate static final int MERCHANT_MENU_PART_X- See Also:
 
- 
PROGRESS_BAR_Xprivate static final int PROGRESS_BAR_X- See Also:
 
- 
PROGRESS_BAR_Yprivate static final int PROGRESS_BAR_Y- See Also:
 
- 
SELL_ITEM_1_Xprivate static final int SELL_ITEM_1_X- See Also:
 
- 
SELL_ITEM_2_Xprivate static final int SELL_ITEM_2_X- See Also:
 
- 
BUY_ITEM_Xprivate static final int BUY_ITEM_X- See Also:
 
- 
LABEL_Yprivate static final int LABEL_Y- See Also:
 
- 
NUMBER_OF_OFFER_BUTTONSprivate static final int NUMBER_OF_OFFER_BUTTONS- See Also:
 
- 
TRADE_BUTTON_Xprivate static final int TRADE_BUTTON_X- See Also:
 
- 
TRADE_BUTTON_HEIGHTprivate static final int TRADE_BUTTON_HEIGHT- See Also:
 
- 
TRADE_BUTTON_WIDTHprivate static final int TRADE_BUTTON_WIDTH- See Also:
 
- 
SCROLLER_HEIGHTprivate static final int SCROLLER_HEIGHT- See Also:
 
- 
SCROLLER_WIDTHprivate static final int SCROLLER_WIDTH- See Also:
 
- 
SCROLL_BAR_HEIGHTprivate static final int SCROLL_BAR_HEIGHT- See Also:
 
- 
SCROLL_BAR_TOP_POS_Yprivate static final int SCROLL_BAR_TOP_POS_Y- See Also:
 
- 
SCROLL_BAR_START_Xprivate static final int SCROLL_BAR_START_X- See Also:
 
- 
TRADES_LABEL
- 
DEPRECATED_TOOLTIP
- 
shopItemprivate int shopItem
- 
tradeOfferButtons
- 
scrollOffint scrollOff
- 
isDraggingprivate boolean isDragging
 
- 
- 
Constructor Details- 
MerchantScreen
 
- 
- 
Method Details- 
postButtonClickprivate void postButtonClick()
- 
initprotected void init()- Overrides:
- initin class- AbstractContainerScreen<MerchantMenu>
 
- 
renderLabels- Overrides:
- renderLabelsin class- AbstractContainerScreen<MerchantMenu>
 
- 
renderBg- Specified by:
- renderBgin class- AbstractContainerScreen<MerchantMenu>
 
- 
renderProgressBarprivate void renderProgressBar(GuiGraphics p_281426_, int p_283008_, int p_283085_, MerchantOffer p_282094_) 
- 
renderScrollerprivate void renderScroller(GuiGraphics p_283030_, int p_283154_, int p_281664_, MerchantOffers p_282877_) 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- AbstractContainerScreen<MerchantMenu>
 
- 
renderButtonArrowsprivate void renderButtonArrows(GuiGraphics p_283020_, MerchantOffer p_281926_, int p_282752_, int p_282179_) 
- 
renderAndDecorateCostAprivate void renderAndDecorateCostA(GuiGraphics p_281357_, ItemStack p_283466_, ItemStack p_282046_, int p_282403_, int p_283601_) 
- 
canScrollprivate boolean canScroll(int p_99141_) 
- 
mouseScrolledpublic boolean mouseScrolled(double p_99127_, double p_99128_, double p_99129_, double p_298933_) 
- 
mouseDraggedpublic boolean mouseDragged(double p_99135_, double p_99136_, int p_99137_, double p_99138_, double p_99139_) - Specified by:
- mouseDraggedin interface- ContainerEventHandler
- Specified by:
- mouseDraggedin interface- GuiEventListener
- Overrides:
- mouseDraggedin class- AbstractContainerScreen<MerchantMenu>
 
- 
mouseClickedpublic boolean mouseClicked(double p_99131_, double p_99132_, int p_99133_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerScreen<MerchantMenu>
 
 
-