类 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 boolean
private static final int
private static final Component
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
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 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
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
canScroll
(int pNumOffers) protected void
init()
boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) boolean
mouseDragged
(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) boolean
mouseScrolled
(double pMouseX, double pMouseY, double pDelta) private void
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) private void
renderAndDecorateCostA
(GuiGraphics pGuiGraphics, ItemStack pRealCost, ItemStack pBaseCost, int pX, int pY) protected void
renderBg
(GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY) private void
renderButtonArrows
(GuiGraphics pGuiGraphics, MerchantOffer pMerchantOffers, int pPosX, int pPosY) protected void
renderLabels
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) private void
renderProgressBar
(GuiGraphics pGuiGraphics, int pPosX, int pPosY, MerchantOffer pMerchantOffer) private void
renderScroller
(GuiGraphics pGuiGraphics, int pPosX, int pPosY, MerchantOffers pMerchantOffers) 从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 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, magicalSpecialHackyFocus, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
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
-
LEVEL_SEPARATOR
-
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 pGuiGraphics, int pPosX, int pPosY, MerchantOffer pMerchantOffer) -
renderScroller
private void renderScroller(GuiGraphics pGuiGraphics, int pPosX, int pPosY, MerchantOffers pMerchantOffers) -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中AbstractContainerScreen<MerchantMenu>
-
renderButtonArrows
private void renderButtonArrows(GuiGraphics pGuiGraphics, MerchantOffer pMerchantOffers, int pPosX, int pPosY) -
renderAndDecorateCostA
private void renderAndDecorateCostA(GuiGraphics pGuiGraphics, ItemStack pRealCost, ItemStack pBaseCost, int pX, int pY) -
canScroll
private boolean canScroll(int pNumOffers) -
mouseScrolled
public boolean mouseScrolled(double pMouseX, double pMouseY, double pDelta) -
mouseDragged
public boolean mouseDragged(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) - 指定者:
mouseDragged
在接口中ContainerEventHandler
- 指定者:
mouseDragged
在接口中GuiEventListener
- 覆盖:
mouseDragged
在类中AbstractContainerScreen<MerchantMenu>
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<MerchantMenu>
-