Class MerchantScreen.WidgetButtonPage
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.AbstractPressableButtonWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.screen.ingame.MerchantScreen.WidgetButtonPage
- Enclosing class:
- MerchantScreen
@Environment(CLIENT) class MerchantScreen.WidgetButtonPage extends ButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier -
Field Summary
Fields Modifier and Type Field Description (package private) intindexFields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplierFields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description WidgetButtonPage(int x, int y, int index, ButtonWidget.PressAction onPress) -
Method Summary
Modifier and Type Method Description intgetIndex()voidrenderToolTip(MatrixStack matrices, int mouseX, int mouseY)Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
onPress, renderButtonMethods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, method_32602, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
index
final int index
-
-
Constructor Details
-
WidgetButtonPage
-
-
Method Details
-
getIndex
public int getIndex() -
renderToolTip
- Overrides:
renderToolTipin classButtonWidget
-