类 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
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<MerchantMenu>
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private static final int
private static final Component
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private boolean
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final int
private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final int
private static final ResourceLocation
private static final int
(专用程序包) int
private static final int
private static final int
private int
private static final int
private static final int
private static final ResourceLocation
private static final ResourceLocation
private static final int
private static final int
private static final int
private final MerchantScreen.TradeOfferButton[]
private static final Component
private static final ResourceLocation
从类继承的字段 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, titleLabelX, titleLabelY, topPos
从类继承的字段 net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
canScroll
(int p_99141_) protected void
init()
boolean
mouseClicked
(double p_99131_, double p_99132_, int p_99133_) boolean
mouseDragged
(double p_99135_, double p_99136_, int p_99137_, double p_99138_, double p_99139_) boolean
mouseScrolled
(double p_99127_, double p_99128_, double p_99129_, double p_298933_) private void
void
render
(GuiGraphics p_283487_, int p_281994_, int p_282099_, float p_281815_) private void
renderAndDecorateCostA
(GuiGraphics p_281357_, ItemStack p_283466_, ItemStack p_282046_, int p_282403_, int p_283601_) protected void
renderBg
(GuiGraphics p_283072_, float p_281275_, int p_282312_, int p_282984_) private void
renderButtonArrows
(GuiGraphics p_283020_, MerchantOffer p_281926_, int p_282752_, int p_282179_) protected void
renderLabels
(GuiGraphics p_283337_, int p_282009_, int p_283691_) private void
renderProgressBar
(GuiGraphics p_281426_, int p_283008_, int p_283085_, MerchantOffer p_282094_) private void
renderScroller
(GuiGraphics p_283030_, int p_283154_, int p_281664_, MerchantOffers p_282877_) 从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, onMouseClickAction, removed, renderBackground, renderSlot, renderSlotHighlightBack, renderSlotHighlightFront, renderSlots, renderTooltip, slotClicked, tick
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
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_WIDTH
private static final int TEXTURE_WIDTH- 另请参阅:
-
TEXTURE_HEIGHT
private static final int TEXTURE_HEIGHT- 另请参阅:
-
MERCHANT_MENU_PART_X
private static final int MERCHANT_MENU_PART_X- 另请参阅:
-
PROGRESS_BAR_X
private static final int PROGRESS_BAR_X- 另请参阅:
-
PROGRESS_BAR_Y
private static final int PROGRESS_BAR_Y- 另请参阅:
-
SELL_ITEM_1_X
private static final int SELL_ITEM_1_X- 另请参阅:
-
SELL_ITEM_2_X
private static final int SELL_ITEM_2_X- 另请参阅:
-
BUY_ITEM_X
private static final int BUY_ITEM_X- 另请参阅:
-
LABEL_Y
private static final int LABEL_Y- 另请参阅:
-
NUMBER_OF_OFFER_BUTTONS
private static final int NUMBER_OF_OFFER_BUTTONS- 另请参阅:
-
TRADE_BUTTON_X
private static final int TRADE_BUTTON_X- 另请参阅:
-
TRADE_BUTTON_HEIGHT
private static final int TRADE_BUTTON_HEIGHT- 另请参阅:
-
TRADE_BUTTON_WIDTH
private static final int TRADE_BUTTON_WIDTH- 另请参阅:
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- 另请参阅:
-
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- 另请参阅:
-
SCROLL_BAR_HEIGHT
private static final int SCROLL_BAR_HEIGHT- 另请参阅:
-
SCROLL_BAR_TOP_POS_Y
private static final int SCROLL_BAR_TOP_POS_Y- 另请参阅:
-
SCROLL_BAR_START_X
private static final int SCROLL_BAR_START_X- 另请参阅:
-
TRADES_LABEL
-
DEPRECATED_TOOLTIP
-
shopItem
private int shopItem -
tradeOfferButtons
-
scrollOff
int scrollOff -
isDragging
private boolean isDragging
-
-
构造器详细资料
-
MerchantScreen
-
-
方法详细资料
-
postButtonClick
private void postButtonClick() -
init
protected void init()- 覆盖:
init
在类中AbstractContainerScreen<MerchantMenu>
-
renderLabels
-
renderBg
- 指定者:
renderBg
在类中AbstractContainerScreen<MerchantMenu>
-
renderProgressBar
private void renderProgressBar(GuiGraphics p_281426_, int p_283008_, int p_283085_, MerchantOffer p_282094_) -
renderScroller
private void renderScroller(GuiGraphics p_283030_, int p_283154_, int p_281664_, MerchantOffers p_282877_) -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中AbstractContainerScreen<MerchantMenu>
-
renderButtonArrows
private void renderButtonArrows(GuiGraphics p_283020_, MerchantOffer p_281926_, int p_282752_, int p_282179_) -
renderAndDecorateCostA
private void renderAndDecorateCostA(GuiGraphics p_281357_, ItemStack p_283466_, ItemStack p_282046_, int p_282403_, int p_283601_) -
canScroll
private boolean canScroll(int p_99141_) -
mouseScrolled
public boolean mouseScrolled(double p_99127_, double p_99128_, double p_99129_, double p_298933_) - 指定者:
mouseScrolled
在接口中ContainerEventHandler
- 指定者:
mouseScrolled
在接口中GuiEventListener
- 覆盖:
mouseScrolled
在类中AbstractContainerScreen<MerchantMenu>
-
mouseDragged
public boolean mouseDragged(double p_99135_, double p_99136_, int p_99137_, double p_99138_, double p_99139_) - 指定者:
mouseDragged
在接口中ContainerEventHandler
- 指定者:
mouseDragged
在接口中GuiEventListener
- 覆盖:
mouseDragged
在类中AbstractContainerScreen<MerchantMenu>
-
mouseClicked
public boolean mouseClicked(double p_99131_, double p_99132_, int p_99133_) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<MerchantMenu>
-