Class ClickableWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
AbstractTextWidget, AnimatedResultButton, GameModeSelectionScreen.ButtonWidget, IconWidget, PressableWidget, RecipeAlternativesWidget.AlternativeButtonWidget, ScrollableWidget, SliderWidget, TabButtonWidget, TextFieldWidget, ToggleButtonWidget

@Environment(CLIENT) public abstract class ClickableWidget extends Object implements Drawable, Element, Widget, Selectable
A clickable widget is a GUI element that has many methods to handle different mouse actions. In addition, it allows a message to be rendered on the widget and narrated when the widget is selected.
Mappings:
Namespace Name
official epf
intermediary net/minecraft/class_339
named net/minecraft/client/gui/widget/ClickableWidget
  • Field Details

    • WIDGETS_TEXTURE

      public static final Identifier WIDGETS_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official m Lepf;m:Lacq;
      intermediary field_22757 Lnet/minecraft/class_339;field_22757:Lnet/minecraft/class_2960;
      named WIDGETS_TEXTURE Lnet/minecraft/client/gui/widget/ClickableWidget;WIDGETS_TEXTURE:Lnet/minecraft/util/Identifier;
    • ACCESSIBILITY_TEXTURE

      public static final Identifier ACCESSIBILITY_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official n Lepf;n:Lacq;
      intermediary field_42117 Lnet/minecraft/class_339;field_42117:Lnet/minecraft/class_2960;
      named ACCESSIBILITY_TEXTURE Lnet/minecraft/client/gui/widget/ClickableWidget;ACCESSIBILITY_TEXTURE:Lnet/minecraft/util/Identifier;
    • field_43055

      private static final double field_43055
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a:D
      intermediary field_43055 Lnet/minecraft/class_339;field_43055:D
      named field_43055 Lnet/minecraft/client/gui/widget/ClickableWidget;field_43055:D
    • field_43056

      private static final double field_43056
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b:D
      intermediary field_43056 Lnet/minecraft/class_339;field_43056:D
      named field_43056 Lnet/minecraft/client/gui/widget/ClickableWidget;field_43056:D
    • width

      protected int width
      Mappings:
      Namespace Name Mixin selector
      official o Lepf;o:I
      intermediary field_22758 Lnet/minecraft/class_339;field_22758:I
      named width Lnet/minecraft/client/gui/widget/ClickableWidget;width:I
    • height

      protected int height
      Mappings:
      Namespace Name Mixin selector
      official p Lepf;p:I
      intermediary field_22759 Lnet/minecraft/class_339;field_22759:I
      named height Lnet/minecraft/client/gui/widget/ClickableWidget;height:I
    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      official c Lepf;c:I
      intermediary field_22760 Lnet/minecraft/class_339;field_22760:I
      named x Lnet/minecraft/client/gui/widget/ClickableWidget;x:I
    • y

      private int y
      Mappings:
      Namespace Name Mixin selector
      official d Lepf;d:I
      intermediary field_22761 Lnet/minecraft/class_339;field_22761:I
      named y Lnet/minecraft/client/gui/widget/ClickableWidget;y:I
    • message

      private Text message
      Mappings:
      Namespace Name Mixin selector
      official e Lepf;e:Lsw;
      intermediary field_22754 Lnet/minecraft/class_339;field_22754:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/client/gui/widget/ClickableWidget;message:Lnet/minecraft/text/Text;
    • hovered

      protected boolean hovered
      Mappings:
      Namespace Name Mixin selector
      official q Lepf;q:Z
      intermediary field_22762 Lnet/minecraft/class_339;field_22762:Z
      named hovered Lnet/minecraft/client/gui/widget/ClickableWidget;hovered:Z
    • active

      public boolean active
      Mappings:
      Namespace Name Mixin selector
      official r Lepf;r:Z
      intermediary field_22763 Lnet/minecraft/class_339;field_22763:Z
      named active Lnet/minecraft/client/gui/widget/ClickableWidget;active:Z
    • visible

      public boolean visible
      Mappings:
      Namespace Name Mixin selector
      official s Lepf;s:Z
      intermediary field_22764 Lnet/minecraft/class_339;field_22764:Z
      named visible Lnet/minecraft/client/gui/widget/ClickableWidget;visible:Z
    • alpha

      protected float alpha
      Mappings:
      Namespace Name Mixin selector
      official t Lepf;t:F
      intermediary field_22765 Lnet/minecraft/class_339;field_22765:F
      named alpha Lnet/minecraft/client/gui/widget/ClickableWidget;alpha:F
    • focused

      private boolean focused
      Mappings:
      Namespace Name Mixin selector
      official g Lepf;g:Z
      intermediary field_22756 Lnet/minecraft/class_339;field_22756:Z
      named focused Lnet/minecraft/client/gui/widget/ClickableWidget;focused:Z
    • tooltip

      @Nullable private @Nullable Tooltip tooltip
      Mappings:
      Namespace Name Mixin selector
      official h Lepf;h:Leqp;
      intermediary field_41095 Lnet/minecraft/class_339;field_41095:Lnet/minecraft/class_7919;
      named tooltip Lnet/minecraft/client/gui/widget/ClickableWidget;tooltip:Lnet/minecraft/client/gui/tooltip/Tooltip;
    • tooltipDelay

      private int tooltipDelay
      Mappings:
      Namespace Name Mixin selector
      official i Lepf;i:I
      intermediary field_41096 Lnet/minecraft/class_339;field_41096:I
      named tooltipDelay Lnet/minecraft/client/gui/widget/ClickableWidget;tooltipDelay:I
    • lastHoveredTime

      private long lastHoveredTime
      Mappings:
      Namespace Name Mixin selector
      official j Lepf;j:J
      intermediary field_41097 Lnet/minecraft/class_339;field_41097:J
      named lastHoveredTime Lnet/minecraft/client/gui/widget/ClickableWidget;lastHoveredTime:J
    • wasHovered

      private boolean wasHovered
      Mappings:
      Namespace Name Mixin selector
      official k Lepf;k:Z
      intermediary field_41098 Lnet/minecraft/class_339;field_41098:Z
      named wasHovered Lnet/minecraft/client/gui/widget/ClickableWidget;wasHovered:Z
  • Constructor Details

    • ClickableWidget

      public ClickableWidget(int x, int y, int width, int height, Text message)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepf;<init>(IIIILsw;)V
      intermediary <init> Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)V
  • Method Details

    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official h Lesi;h()I
      intermediary method_25364 Lnet/minecraft/class_8021;method_25364()I
      named getHeight Lnet/minecraft/client/gui/widget/Widget;getHeight()I
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Mappings:
      Namespace Name Mixin selector
      official a Leqh;a(Leox;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • applyTooltip

      private void applyTooltip()
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a()V
      intermediary method_47401 Lnet/minecraft/class_339;method_47401()V
      named applyTooltip Lnet/minecraft/client/gui/widget/ClickableWidget;applyTooltip()V
    • getTooltipPositioner

      protected TooltipPositioner getTooltipPositioner()
      Mappings:
      Namespace Name Mixin selector
      official i Lepf;i()Lexi;
      intermediary method_47937 Lnet/minecraft/class_339;method_47937()Lnet/minecraft/class_8000;
      named getTooltipPositioner Lnet/minecraft/client/gui/widget/ClickableWidget;getTooltipPositioner()Lnet/minecraft/client/gui/tooltip/TooltipPositioner;
    • setTooltip

      public void setTooltip(@Nullable @Nullable Tooltip tooltip)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Leqp;)V
      intermediary method_47400 Lnet/minecraft/class_339;method_47400(Lnet/minecraft/class_7919;)V
      named setTooltip Lnet/minecraft/client/gui/widget/ClickableWidget;setTooltip(Lnet/minecraft/client/gui/tooltip/Tooltip;)V
    • getTooltip

      @Nullable public @Nullable Tooltip getTooltip()
      Mappings:
      Namespace Name Mixin selector
      official j Lepf;j()Leqp;
      intermediary method_51254 Lnet/minecraft/class_339;method_51254()Lnet/minecraft/class_7919;
      named getTooltip Lnet/minecraft/client/gui/widget/ClickableWidget;getTooltip()Lnet/minecraft/client/gui/tooltip/Tooltip;
    • setTooltipDelay

      public void setTooltipDelay(int delay)
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(I)V
      intermediary method_47402 Lnet/minecraft/class_339;method_47402(I)V
      named setTooltipDelay Lnet/minecraft/client/gui/widget/ClickableWidget;setTooltipDelay(I)V
    • getNarrationMessage

      protected MutableText getNarrationMessage()
      Mappings:
      Namespace Name Mixin selector
      official aE_ Lepf;aE_()Ltj;
      intermediary method_25360 Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
      named getNarrationMessage Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
    • getNarrationMessage

      public static MutableText getNarrationMessage(Text message)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Lsw;)Ltj;
      intermediary method_32602 Lnet/minecraft/class_339;method_32602(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;
      named getNarrationMessage Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;
    • renderButton

      public abstract void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(Leox;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • drawScrollableText

      protected static void drawScrollableText(DrawContext context, TextRenderer textRenderer, Text text, int left, int top, int right, int bottom, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Leox;Leov;Lsw;IIIII)V
      intermediary method_49605 Lnet/minecraft/class_339;method_49605(Lnet/minecraft/class_332;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;IIIII)V
      named drawScrollableText Lnet/minecraft/client/gui/widget/ClickableWidget;drawScrollableText(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;IIIII)V
    • drawScrollableText

      protected void drawScrollableText(DrawContext context, TextRenderer textRenderer, int xMargin, int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Leox;Leov;II)V
      intermediary method_49604 Lnet/minecraft/class_339;method_49604(Lnet/minecraft/class_332;Lnet/minecraft/class_327;II)V
      named drawScrollableText Lnet/minecraft/client/gui/widget/ClickableWidget;drawScrollableText(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;II)V
    • drawTexture

      public void drawTexture(DrawContext context, Identifier texture, int x, int y, int u, int v, int hoveredVOffset, int width, int height, int textureWidth, int textureHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Leox;Lacq;IIIIIIIII)V
      intermediary method_48588 Lnet/minecraft/class_339;method_48588(Lnet/minecraft/class_332;Lnet/minecraft/class_2960;IIIIIIIII)V
      named drawTexture Lnet/minecraft/client/gui/widget/ClickableWidget;drawTexture(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/util/Identifier;IIIIIIIII)V
    • onClick

      public void onClick(double mouseX, double mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(DD)V
      intermediary method_25348 Lnet/minecraft/class_339;method_25348(DD)V
      named onClick Lnet/minecraft/client/gui/widget/ClickableWidget;onClick(DD)V
    • onRelease

      public void onRelease(double mouseX, double mouseY)
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(DD)V
      intermediary method_25357 Lnet/minecraft/class_339;method_25357(DD)V
      named onRelease Lnet/minecraft/client/gui/widget/ClickableWidget;onRelease(DD)V
    • onDrag

      protected void onDrag(double mouseX, double mouseY, double deltaX, double deltaY)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(DDDD)V
      intermediary method_25349 Lnet/minecraft/class_339;method_25349(DDDD)V
      named onDrag Lnet/minecraft/client/gui/widget/ClickableWidget;onDrag(DDDD)V
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leqt;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
      Callback for when a mouse button release event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseReleased in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leqt;b(DDI)Z
      intermediary method_25406 Lnet/minecraft/class_364;method_25406(DDI)Z
      named mouseReleased Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
    • isValidClickButton

      protected boolean isValidClickButton(int button)
      Mappings:
      Namespace Name Mixin selector
      official c Lepf;c(I)Z
      intermediary method_25351 Lnet/minecraft/class_339;method_25351(I)Z
      named isValidClickButton Lnet/minecraft/client/gui/widget/ClickableWidget;isValidClickButton(I)Z
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
      Callback for when a mouse button drag event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseDragged in interface Element
      Parameters:
      mouseX - the current X coordinate of the mouse
      mouseY - the current Y coordinate of the mouse
      button - the mouse button number
      deltaX - the difference of the current X with the previous X coordinate
      deltaY - the difference of the current Y with the previous Y coordinate
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leqt;a(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
    • clicked

      protected boolean clicked(double mouseX, double mouseY)
      Mappings:
      Namespace Name Mixin selector
      official d Lepf;d(DD)Z
      intermediary method_25361 Lnet/minecraft/class_339;method_25361(DD)Z
      named clicked Lnet/minecraft/client/gui/widget/ClickableWidget;clicked(DD)Z
    • getNavigationPath

      @Nullable public @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Mappings:
      Namespace Name Mixin selector
      official a Leqt;a(Lesv;)Leou;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      Returns:
      true if the mouse is within the bound of the element, otherwise false
      Mappings:
      Namespace Name Mixin selector
      official a_ Leqt;a_(DD)Z
      intermediary method_25405 Lnet/minecraft/class_364;method_25405(DD)Z
      named isMouseOver Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
    • playDownSound

      public void playDownSound(SoundManager soundManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Lfzc;)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
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official k Lesi;k()I
      intermediary method_25368 Lnet/minecraft/class_8021;method_25368()I
      named getWidth Lnet/minecraft/client/gui/widget/Widget;getWidth()I
    • setWidth

      public void setWidth(int width)
      Mappings:
      Namespace Name Mixin selector
      official d Lepf;d(I)V
      intermediary method_25358 Lnet/minecraft/class_339;method_25358(I)V
      named setWidth Lnet/minecraft/client/gui/widget/ClickableWidget;setWidth(I)V
    • setAlpha

      public void setAlpha(float alpha)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(F)V
      intermediary method_25350 Lnet/minecraft/class_339;method_25350(F)V
      named setAlpha Lnet/minecraft/client/gui/widget/ClickableWidget;setAlpha(F)V
    • setMessage

      public void setMessage(Text message)
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(Lsw;)V
      intermediary method_25355 Lnet/minecraft/class_339;method_25355(Lnet/minecraft/class_2561;)V
      named setMessage Lnet/minecraft/client/gui/widget/ClickableWidget;setMessage(Lnet/minecraft/text/Text;)V
    • getMessage

      public Text getMessage()
      Mappings:
      Namespace Name Mixin selector
      official l Lepf;l()Lsw;
      intermediary method_25369 Lnet/minecraft/class_339;method_25369()Lnet/minecraft/class_2561;
      named getMessage Lnet/minecraft/client/gui/widget/ClickableWidget;getMessage()Lnet/minecraft/text/Text;
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official aB_ Leqt;aB_()Z
      intermediary method_25370 Lnet/minecraft/class_364;method_25370()Z
      named isFocused Lnet/minecraft/client/gui/Element;isFocused()Z
    • isHovered

      public boolean isHovered()
      Mappings:
      Namespace Name Mixin selector
      official m Lepf;m()Z
      intermediary method_49606 Lnet/minecraft/class_339;method_49606()Z
      named isHovered Lnet/minecraft/client/gui/widget/ClickableWidget;isHovered()Z
    • isSelected

      public boolean isSelected()
      Mappings:
      Namespace Name Mixin selector
      official n Lepf;n()Z
      intermediary method_25367 Lnet/minecraft/class_339;method_25367()Z
      named isSelected Lnet/minecraft/client/gui/widget/ClickableWidget;isSelected()Z
    • isNarratable

      public boolean isNarratable()
      Specified by:
      isNarratable in interface Selectable
      Mappings:
      Namespace Name Mixin selector
      official aD_ Lesn;aD_()Z
      intermediary method_37303 Lnet/minecraft/class_6379;method_37303()Z
      named isNarratable Lnet/minecraft/client/gui/Selectable;isNarratable()Z
    • setFocused

      public void setFocused(boolean focused)
      Specified by:
      setFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official b_ Leqt;b_(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V
    • getType

      public Selectable.SelectionType getType()
      Specified by:
      getType in interface Selectable
      Mappings:
      Namespace Name Mixin selector
      official q Lesn;q()Lesn$a;
      intermediary method_37018 Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;
      named getType Lnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
    • appendNarrations

      public final void appendNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendNarrations in interface Narratable
      Mappings:
      Namespace Name Mixin selector
      official b Lesq;b(Lesp;)V
      intermediary method_37020 Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
      named appendNarrations Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • appendClickableNarrations

      protected abstract void appendClickableNarrations(NarrationMessageBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Lesp;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • appendDefaultNarrations

      protected void appendDefaultNarrations(NarrationMessageBuilder builder)
      Mappings:
      Namespace Name Mixin selector
      official c Lepf;c(Lesp;)V
      intermediary method_37021 Lnet/minecraft/class_339;method_37021(Lnet/minecraft/class_6382;)V
      named appendDefaultNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendDefaultNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • getX

      public int getX()
      Specified by:
      getX in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official p Lesi;p()I
      intermediary method_46426 Lnet/minecraft/class_8021;method_46426()I
      named getX Lnet/minecraft/client/gui/widget/Widget;getX()I
    • setX

      public void setX(int x)
      Specified by:
      setX in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official e Lesi;e(I)V
      intermediary method_46421 Lnet/minecraft/class_8021;method_46421(I)V
      named setX Lnet/minecraft/client/gui/widget/Widget;setX(I)V
    • getY

      public int getY()
      Specified by:
      getY in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official r Lesi;r()I
      intermediary method_46427 Lnet/minecraft/class_8021;method_46427()I
      named getY Lnet/minecraft/client/gui/widget/Widget;getY()I
    • setY

      public void setY(int y)
      Specified by:
      setY in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official f Lesi;f(I)V
      intermediary method_46419 Lnet/minecraft/class_8021;method_46419(I)V
      named setY Lnet/minecraft/client/gui/widget/Widget;setY(I)V
    • forEachChild

      public void forEachChild(Consumer<ClickableWidget> consumer)
      Specified by:
      forEachChild in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official a Lesi;a(Ljava/util/function/Consumer;)V
      intermediary method_48206 Lnet/minecraft/class_8021;method_48206(Ljava/util/function/Consumer;)V
      named forEachChild Lnet/minecraft/client/gui/widget/Widget;forEachChild(Ljava/util/function/Consumer;)V
    • getNavigationFocus

      public ScreenRect getNavigationFocus()
      Specified by:
      getNavigationFocus in interface Element
      Specified by:
      getNavigationFocus in interface Widget
      Mappings:
      Namespace Name Mixin selector
      official s Leqt;s()Lesz;
      intermediary method_48202 Lnet/minecraft/class_364;method_48202()Lnet/minecraft/class_8030;
      named getNavigationFocus Lnet/minecraft/client/gui/Element;getNavigationFocus()Lnet/minecraft/client/gui/ScreenRect;
    • getNavigationOrder

      public int getNavigationOrder()
      Specified by:
      getNavigationOrder in interface Navigable
      Mappings:
      Namespace Name Mixin selector
      official aC_ Leqn;aC_()I
      intermediary method_48590 Lnet/minecraft/class_8083;method_48590()I
      named getNavigationOrder Lnet/minecraft/client/gui/navigation/Navigable;getNavigationOrder()I
    • setNavigationOrder

      public void setNavigationOrder(int navigationOrder)
      Mappings:
      Namespace Name Mixin selector
      official g Lepf;g(I)V
      intermediary method_48591 Lnet/minecraft/class_339;method_48591(I)V
      named setNavigationOrder Lnet/minecraft/client/gui/widget/ClickableWidget;setNavigationOrder(I)V