net.minecraft.client.gui.screen.ingame

public class MerchantScreen

extends HandledScreen<MerchantScreenHandler>

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable, ScreenHandlerProvider

net.minecraft.client.gui.screens.inventory.MerchantScreen
net.minecraft.client.gui.screens.inventory.MerchantScreen
net.minecraft.class_492
net.minecraft.client.gui.screen.ingame.MerchantScreen

Field summary

Modifier and TypeField
private static final Identifier
OUT_OF_STOCK_SPRITE
OUT_OF_STOCK_SPRITE
field_45490
OUT_OF_STOCK_TEXTURE
private static final Identifier
EXPERIENCE_BAR_BACKGROUND_SPRITE
EXPERIENCE_BAR_BACKGROUND_SPRITE
field_45491
EXPERIENCE_BAR_BACKGROUND_TEXTURE
private static final Identifier
EXPERIENCE_BAR_CURRENT_SPRITE
EXPERIENCE_BAR_CURRENT_SPRITE
field_45492
EXPERIENCE_BAR_CURRENT_TEXTURE
private static final Identifier
EXPERIENCE_BAR_RESULT_SPRITE
EXPERIENCE_BAR_RESULT_SPRITE
field_45484
EXPERIENCE_BAR_RESULT_TEXTURE
private static final Identifier
SCROLLER_SPRITE
SCROLLER_SPRITE
field_45485
SCROLLER_TEXTURE
private static final Identifier
SCROLLER_DISABLED_SPRITE
SCROLLER_DISABLED_SPRITE
field_45486
SCROLLER_DISABLED_TEXTURE
private static final Identifier
TRADE_ARROW_OUT_OF_STOCK_SPRITE
TRADE_ARROW_OUT_OF_STOCK_SPRITE
field_45487
TRADE_ARROW_OUT_OF_STOCK_TEXTURE
private static final Identifier
TRADE_ARROW_SPRITE
TRADE_ARROW_SPRITE
field_45488
TRADE_ARROW_TEXTURE
private static final Identifier
DISCOUNT_STRIKETHRUOGH_SPRITE
DISCOUNT_STRIKETHRUOGH_SPRITE
field_45489
DISCOUNT_STRIKETHROUGH_TEXTURE
private static final Identifier
VILLAGER_LOCATION
VILLAGER_LOCATION
field_2950
TEXTURE
private static final int
TEXTURE_WIDTH
TEXTURE_WIDTH
field_32354
TEXTURE_WIDTH
private static final int
TEXTURE_HEIGHT
TEXTURE_HEIGHT
field_32355
TEXTURE_HEIGHT
private static final int
MERCHANT_MENU_PART_X
MERCHANT_MENU_PART_X
field_32356
field_32356
private static final int
PROGRESS_BAR_X
PROGRESS_BAR_X
field_32357
EXPERIENCE_BAR_X_OFFSET
private static final int
PROGRESS_BAR_Y
PROGRESS_BAR_Y
field_32358
TRADE_LIST_AREA_Y_OFFSET
private static final int
SELL_ITEM_1_X
SELL_ITEM_1_X
field_32359
FIRST_BUY_ITEM_X_OFFSET
private static final int
SELL_ITEM_2_X
SELL_ITEM_2_X
field_32360
SECOND_BUY_ITEM_X_OFFSET
private static final int
BUY_ITEM_X
BUY_ITEM_X
field_32361
SOLD_ITEM_X_OFFSET
private static final int
LABEL_Y
LABEL_Y
field_32362
field_32362
private static final int
NUMBER_OF_OFFER_BUTTONS
NUMBER_OF_OFFER_BUTTONS
field_32363
MAX_TRADE_OFFERS
private static final int
TRADE_BUTTON_X
TRADE_BUTTON_X
field_32364
field_32364
private static final int
TRADE_BUTTON_HEIGHT
TRADE_BUTTON_HEIGHT
field_32365
TRADE_OFFER_BUTTON_HEIGHT
private static final int
TRADE_BUTTON_WIDTH
TRADE_BUTTON_WIDTH
field_32366
TRADE_OFFER_BUTTON_WIDTH
private static final int
SCROLLER_HEIGHT
SCROLLER_HEIGHT
field_32367
SCROLLBAR_HEIGHT
private static final int
SCROLLER_WIDTH
SCROLLER_WIDTH
field_32368
SCROLLBAR_WIDTH
private static final int
SCROLL_BAR_HEIGHT
SCROLL_BAR_HEIGHT
field_32369
SCROLLBAR_AREA_HEIGHT
private static final int
SCROLL_BAR_TOP_POS_Y
SCROLL_BAR_TOP_POS_Y
field_32370
SCROLLBAR_OFFSET_Y
private static final int
SCROLL_BAR_START_X
SCROLL_BAR_START_X
field_32371
SCROLLBAR_OFFSET_X
private static final Text
TRADES_LABEL
TRADES_LABEL
field_26569
TRADES_TEXT
private static final Text
DEPRECATED_TOOLTIP
DEPRECATED_TOOLTIP
field_26571
DEPRECATED_TEXT
private int
shopItem
shopItem
field_19161
selectedIndex
private final MerchantScreen$WidgetButtonPage[]
tradeOfferButtons
tradeOfferButtons
field_19162
offers
private int
scrollOff
scrollOff
field_19163
indexStartOffset
private boolean
isDragging
isDragging
field_19164
scrolling

Constructor summary

ModifierConstructor
public (MerchantScreenHandler handler, PlayerInventory inventory, Text title)

Method summary

Modifier and TypeMethod
private void
postButtonClick()
postButtonClick()
method_2496()
syncRecipeIndex()
protected void
init()
init()
method_25426()
init()
protected void
extractLabels(GuiGraphicsExtractor graphics, int xm, int ym)
extractLabels(GuiGraphicsExtractor graphics, int xm, int ym)
method_2388(class_332 arg0, int arg1, int arg2)
drawForeground(DrawContext arg0, int arg1, int arg2)
public void
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
private void
extractProgressBar(GuiGraphicsExtractor graphics, int xo, int yo, MerchantOffer offer)
extractProgressBar(GuiGraphicsExtractor graphics, int xo, int yo, MerchantOffer offer)
method_19413(class_332 arg0, int arg1, int arg2, class_1914 arg3)
drawLevelInfo(DrawContext context, int x, int y, TradeOffer tradeOffer)
private void
extractScroller(GuiGraphicsExtractor graphics, int xo, int yo, int mouseX, int mouseY, MerchantOffers offers)
extractScroller(GuiGraphicsExtractor graphics, int xo, int yo, int mouseX, int mouseY, MerchantOffers offers)
method_20221(class_332 arg0, int arg1, int arg2, int arg3, int arg4, class_1916 arg5)
renderScrollbar(DrawContext context, int x, int y, int mouseX, int mouseY, TradeOfferList tradeOffers)
public void
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_71085(class_332 arg0, int arg1, int arg2, float arg3)
renderMain(DrawContext arg0, int arg1, int arg2, float arg3)
private void
extractButtonArrows(GuiGraphicsExtractor graphics, MerchantOffer offer, int xo, int decorHeight)
extractButtonArrows(GuiGraphicsExtractor graphics, MerchantOffer offer, int xo, int decorHeight)
method_20223(class_332 arg0, class_1914 arg1, int arg2, int arg3)
renderArrow(DrawContext context, TradeOffer tradeOffer, int x, int y)
private void
extractAndDecorateCostA(GuiGraphicsExtractor graphics, ItemStack costA, ItemStack baseCostA, int sellItem1X, int decorHeight)
extractAndDecorateCostA(GuiGraphicsExtractor graphics, ItemStack costA, ItemStack baseCostA, int sellItem1X, int decorHeight)
method_20222(class_332 arg0, class_1799 arg1, class_1799 arg2, int arg3, int arg4)
renderFirstBuyItem(DrawContext context, ItemStack adjustedFirstBuyItem, ItemStack originalFirstBuyItem, int x, int y)
private boolean
canScroll(int numberOfOffers)
canScroll(int numberOfOffers)
method_20220(int arg0)
canScroll(int listSize)
public boolean
mouseScrolled(double x, double y, double scrollX, double scrollY)
mouseScrolled(double x, double y, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
public boolean
mouseDragged(MouseButtonEvent event, double dx, double dy)
mouseDragged(MouseButtonEvent event, double dx, double dy)
method_25403(class_11909 arg0, double arg1, double arg2)
mouseDragged(Click arg0, double arg1, double arg2)
public boolean
mouseClicked(MouseButtonEvent event, boolean doubleClick)
mouseClicked(MouseButtonEvent event, boolean doubleClick)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
public boolean
mouseReleased(MouseButtonEvent event)
mouseReleased(MouseButtonEvent event)
method_25406(class_11909 arg0)
mouseReleased(Click arg0)