Class LockButtonWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

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

    • locked

      private boolean locked
      Mappings:
      Namespace Name Mixin selector
      named locked Lnet/minecraft/client/gui/widget/LockButtonWidget;locked:Z
      intermediary field_2131 Lnet/minecraft/class_347;field_2131:Z
      official a Lfhw;a:Z
  • Constructor Details

    • LockButtonWidget

      public LockButtonWidget(int x, int y, ButtonWidget.PressAction action)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/LockButtonWidget;<init>(IILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
      intermediary <init> Lnet/minecraft/class_347;<init>(IILnet/minecraft/class_4185$class_4241;)V
      official <init> Lfhw;<init>(IILfhg$c;)V
  • Method Details

    • getNarrationMessage

      protected MutableText getNarrationMessage()
      Overrides:
      getNarrationMessage in class ButtonWidget
      Mappings:
      Namespace Name Mixin selector
      named getNarrationMessage Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
      intermediary method_25360 Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
      official aJ_ Lfhe;aJ_()Lyd;
    • isLocked

      public boolean isLocked()
      Mappings:
      Namespace Name Mixin selector
      named isLocked Lnet/minecraft/client/gui/widget/LockButtonWidget;isLocked()Z
      intermediary method_1896 Lnet/minecraft/class_347;method_1896()Z
      official a Lfhw;a()Z
    • setLocked

      public void setLocked(boolean locked)
      Mappings:
      Namespace Name Mixin selector
      named setLocked Lnet/minecraft/client/gui/widget/LockButtonWidget;setLocked(Z)V
      intermediary method_1895 Lnet/minecraft/class_347;method_1895(Z)V
      official b Lfhw;b(Z)V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Overrides:
      renderWidget in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      official b Lfhe;b(Lfgt;IIF)V