Class PageTurnWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

@Environment(CLIENT) public class PageTurnWidget extends ButtonWidget
Mappings:
Namespace Name
official erf
intermediary net/minecraft/class_474
named net/minecraft/client/gui/widget/PageTurnWidget
  • Field Details

    • isNextPageButton

      private final boolean isNextPageButton
      Mappings:
      Namespace Name Mixin selector
      official a Lerf;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 Lerf;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> Lerf;<init>(IIZLeky$c;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

      public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lekw;b(Leed;IIF)V
      intermediary method_25359 Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • playDownSound

      public void playDownSound(SoundManager soundManager)
      Overrides:
      playDownSound in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lekw;a(Lfsr;)V
      intermediary method_25354 Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V
      named playDownSound Lnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V