Class IconWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.IconWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
IconWidget.Simple, IconWidget.Texture

@Environment(CLIENT) public abstract class IconWidget extends ClickableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/IconWidget
intermediary net/minecraft/class_8208
official fht
  • Constructor Details

    • IconWidget

      IconWidget(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/IconWidget;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_8208;<init>(IIII)V
      official <init> Lfht;<init>(IIII)V
  • Method Details

    • create

      public static IconWidget create(int width, int height, Identifier texture, int textureWidth, int textureHeight)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/gui/widget/IconWidget;create(IILnet/minecraft/util/Identifier;II)Lnet/minecraft/client/gui/widget/IconWidget;
      intermediary method_52721 Lnet/minecraft/class_8208;method_52721(IILnet/minecraft/class_2960;II)Lnet/minecraft/class_8208;
      official a Lfht;a(IILalf;II)Lfht;
    • create

      public static IconWidget create(int width, int height, Identifier texture)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/gui/widget/IconWidget;create(IILnet/minecraft/util/Identifier;)Lnet/minecraft/client/gui/widget/IconWidget;
      intermediary method_52720 Lnet/minecraft/class_8208;method_52720(IILnet/minecraft/class_2960;)Lnet/minecraft/class_8208;
      official a Lfht;a(IILalf;)Lfht;
    • appendClickableNarrations

      protected void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      official a Lfhe;a(Lflc;)V
    • playDownSound

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

      public boolean isNarratable()
      Specified by:
      isNarratable in interface Selectable
      Overrides:
      isNarratable in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named isNarratable Lnet/minecraft/client/gui/Selectable;isNarratable()Z
      intermediary method_37303 Lnet/minecraft/class_6379;method_37303()Z
      official B Lfla;B()Z
    • getNavigationPath

      @Nullable public @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Overrides:
      getNavigationPath in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      official a Lfjc;a(Lfli;)Lfgq;