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
official ext
intermediary net/minecraft/class_8208
named net/minecraft/client/gui/widget/IconWidget
  • Constructor Details

    • IconWidget

      IconWidget(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lext;<init>(IIII)V
      intermediary <init> Lnet/minecraft/class_8208;<init>(IIII)V
      named <init> Lnet/minecraft/client/gui/widget/IconWidget;<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
      official a Lext;a(IILahg;II)Lext;
      intermediary method_52721 Lnet/minecraft/class_8208;method_52721(IILnet/minecraft/class_2960;II)Lnet/minecraft/class_8208;
      named create Lnet/minecraft/client/gui/widget/IconWidget;create(IILnet/minecraft/util/Identifier;II)Lnet/minecraft/client/gui/widget/IconWidget;
    • create

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

      protected void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lexe;a(Lfaz;)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
    • playDownSound

      public void playDownSound(SoundManager soundManager)
      Overrides:
      playDownSound in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lexe;a(Lgje;)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
    • isNarratable

      public boolean isNarratable()
      Specified by:
      isNarratable in interface Selectable
      Overrides:
      isNarratable in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official A Lfax;A()Z
      intermediary method_37303 Lnet/minecraft/class_6379;method_37303()Z
      named isNarratable Lnet/minecraft/client/gui/Selectable;isNarratable()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
      official a Lezb;a(Lfbf;)Lewr;
      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;