Package net.minecraft.client.gui.widget
Class PageTurnWidget
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.widget.PageTurnWidget
@Environment(CLIENT) public class PageTurnWidget extends ButtonWidget
- Mappings:
Namespace Name official dxe
intermediary net/minecraft/class_474
named net/minecraft/client/gui/widget/PageTurnWidget
-
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 private boolean
isNextPageButton
private boolean
playPageTurnSound
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplier
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description PageTurnWidget(int x, int y, boolean isNextPageButton, ButtonWidget.PressAction action, boolean playPageTurnSound)
-
Method Summary
Modifier and Type Method Description void
playDownSound(SoundManager soundManager)
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
onPress, renderToolTip
Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
Methods 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, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
isNextPageButton
private final boolean isNextPageButton- Mappings:
Namespace Name Mixin selector official a
Ldxe;a:Z
intermediary field_2851
Lnet/minecraft/class_474;field_2851:Z
named isNextPageButton
Lnet/minecraft/client/gui/widget/PageTurnWidget;isNextPageButton:Z
-
playPageTurnSound
private final boolean playPageTurnSound- Mappings:
Namespace Name Mixin selector official b
Ldxe;b:Z
intermediary field_18977
Lnet/minecraft/class_474;field_18977:Z
named playPageTurnSound
Lnet/minecraft/client/gui/widget/PageTurnWidget;playPageTurnSound:Z
-
-
Constructor Details
-
PageTurnWidget
public PageTurnWidget(int x, int y, boolean isNextPageButton, ButtonWidget.PressAction action, boolean playPageTurnSound)- Mappings:
Namespace Name Mixin selector official <init>
Ldxe;<init>(IIZLdru$a;Z)V
intermediary <init>
Lnet/minecraft/class_474;<init>(IIZLnet/minecraft/class_4185$class_4241;Z)V
named <init>
Lnet/minecraft/client/gui/widget/PageTurnWidget;<init>(IIZLnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Z)V
-
-
Method Details
-
renderButton
- Overrides:
renderButton
in classButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
playDownSound
- Overrides:
playDownSound
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official a
Ldrs;a(Levm;)V
intermediary method_25354
Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V
named playDownSound
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V
-