Class TabNavigationWidget

java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.TabNavigationWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, ParentElement, Selectable

@Environment(CLIENT) public class TabNavigationWidget extends AbstractParentElement implements Drawable, Selectable
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/TabNavigationWidget
intermediary net/minecraft/class_8089
official fqk
  • Field Details

    • field_42489

      private static final int field_42489
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_42489 Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_42489:I
      intermediary field_42489 Lnet/minecraft/class_8089;field_42489:I
      official a Lfqk;a:I
    • field_43076

      private static final int field_43076
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_43076 Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43076:I
      intermediary field_43076 Lnet/minecraft/class_8089;field_43076:I
      official b Lfqk;b:I
    • field_43077

      private static final int field_43077
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_43077 Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43077:I
      intermediary field_43077 Lnet/minecraft/class_8089;field_43077:I
      official c Lfqk;c:I
    • field_43078

      private static final int field_43078
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_43078 Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43078:I
      intermediary field_43078 Lnet/minecraft/class_8089;field_43078:I
      official d Lfqk;d:I
    • USAGE_NARRATION_TEXT

      private static final Text USAGE_NARRATION_TEXT
      Mappings:
      Namespace Name Mixin selector
      named USAGE_NARRATION_TEXT Lnet/minecraft/client/gui/widget/TabNavigationWidget;USAGE_NARRATION_TEXT:Lnet/minecraft/text/Text;
      intermediary field_43079 Lnet/minecraft/class_8089;field_43079:Lnet/minecraft/class_2561;
      official e Lfqk;e:Lxv;
    • grid

      private final DirectionalLayoutWidget grid
      Mappings:
      Namespace Name Mixin selector
      named grid Lnet/minecraft/client/gui/widget/TabNavigationWidget;grid:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
      intermediary field_43080 Lnet/minecraft/class_8089;field_43080:Lnet/minecraft/class_8667;
      official f Lfqk;f:Lfrx;
    • tabNavWidth

      private int tabNavWidth
      Mappings:
      Namespace Name Mixin selector
      named tabNavWidth Lnet/minecraft/client/gui/widget/TabNavigationWidget;tabNavWidth:I
      intermediary field_42145 Lnet/minecraft/class_8089;field_42145:I
      official g Lfqk;g:I
    • tabManager

      private final TabManager tabManager
      Mappings:
      Namespace Name Mixin selector
      named tabManager Lnet/minecraft/client/gui/widget/TabNavigationWidget;tabManager:Lnet/minecraft/client/gui/tab/TabManager;
      intermediary field_42146 Lnet/minecraft/class_8089;field_42146:Lnet/minecraft/class_8088;
      official h Lfqk;h:Lfqj;
    • tabs

      private final ImmutableList<Tab> tabs
      Mappings:
      Namespace Name Mixin selector
      named tabs Lnet/minecraft/client/gui/widget/TabNavigationWidget;tabs:Lcom/google/common/collect/ImmutableList;
      intermediary field_42147 Lnet/minecraft/class_8089;field_42147:Lcom/google/common/collect/ImmutableList;
      official i Lfqk;i:Lcom/google/common/collect/ImmutableList;
    • tabButtons

      private final ImmutableList<TabButtonWidget> tabButtons
      Mappings:
      Namespace Name Mixin selector
      named tabButtons Lnet/minecraft/client/gui/widget/TabNavigationWidget;tabButtons:Lcom/google/common/collect/ImmutableList;
      intermediary field_42148 Lnet/minecraft/class_8089;field_42148:Lcom/google/common/collect/ImmutableList;
      official j Lfqk;j:Lcom/google/common/collect/ImmutableList;
  • Constructor Details

    • TabNavigationWidget

      TabNavigationWidget(int x, TabManager tabManager, Iterable<Tab> tabs)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/TabNavigationWidget;<init>(ILnet/minecraft/client/gui/tab/TabManager;Ljava/lang/Iterable;)V
      intermediary <init> Lnet/minecraft/class_8089;<init>(ILnet/minecraft/class_8088;Ljava/lang/Iterable;)V
      official <init> Lfqk;<init>(ILfqj;Ljava/lang/Iterable;)V
  • Method Details

    • builder

      public static TabNavigationWidget.Builder builder(TabManager tabManager, int width)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/client/gui/widget/TabNavigationWidget;builder(Lnet/minecraft/client/gui/tab/TabManager;I)Lnet/minecraft/client/gui/widget/TabNavigationWidget$Builder;
      intermediary method_48623 Lnet/minecraft/class_8089;method_48623(Lnet/minecraft/class_8088;I)Lnet/minecraft/class_8089$class_8090;
      official a Lfqk;a(Lfqj;I)Lfqk$a;
    • setWidth

      public void setWidth(int width)
      Mappings:
      Namespace Name Mixin selector
      named setWidth Lnet/minecraft/client/gui/widget/TabNavigationWidget;setWidth(I)V
      intermediary method_48618 Lnet/minecraft/class_8089;method_48618(I)V
      official a Lfqk;a(I)V
    • setFocused

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

      public void setFocused(@Nullable @Nullable Element focused)
      Specified by:
      setFocused in interface ParentElement
      Overrides:
      setFocused in class AbstractParentElement
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      official a Lfqb;a(Lfqc;)V
    • getNavigationPath

      @Nullable public @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Specified by:
      getNavigationPath in interface ParentElement
      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 Lfqc;a(Lfsi;)Lfno;
    • children

      public List<? extends Element> children()
      Gets a list of all child GUI elements.
      Specified by:
      children in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
      intermediary method_25396 Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
      official aI_ Lfqb;aI_()Ljava/util/List;
    • getType

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

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

      protected void appendNarrations(NarrationMessageBuilder builder, TabButtonWidget button)
      Mappings:
      Namespace Name Mixin selector
      named appendNarrations Lnet/minecraft/client/gui/widget/TabNavigationWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/TabButtonWidget;)V
      intermediary method_49612 Lnet/minecraft/class_8089;method_49612(Lnet/minecraft/class_6382;Lnet/minecraft/class_8209;)V
      official a Lfqk;a(Lfsc;Lfpo;)V
    • render

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

      public ScreenRect getNavigationFocus()
      Specified by:
      getNavigationFocus in interface Element
      Mappings:
      Namespace Name Mixin selector
      named getNavigationFocus Lnet/minecraft/client/gui/Element;getNavigationFocus()Lnet/minecraft/client/gui/ScreenRect;
      intermediary method_48202 Lnet/minecraft/class_364;method_48202()Lnet/minecraft/class_8030;
      official H Lfqc;H()Lfsm;
    • init

      public void init()
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/widget/TabNavigationWidget;init()V
      intermediary method_49613 Lnet/minecraft/class_8089;method_49613()V
      official b Lfqk;b()V
    • selectTab

      public void selectTab(int index, boolean clickSound)
      Mappings:
      Namespace Name Mixin selector
      named selectTab Lnet/minecraft/client/gui/widget/TabNavigationWidget;selectTab(IZ)V
      intermediary method_48987 Lnet/minecraft/class_8089;method_48987(IZ)V
      official a Lfqk;a(IZ)V
    • trySwitchTabsWithKey

      public boolean trySwitchTabsWithKey(int keyCode)
      Mappings:
      Namespace Name Mixin selector
      named trySwitchTabsWithKey Lnet/minecraft/client/gui/widget/TabNavigationWidget;trySwitchTabsWithKey(I)Z
      intermediary method_48988 Lnet/minecraft/class_8089;method_48988(I)Z
      official b Lfqk;b(I)Z
    • getTabForKey

      private int getTabForKey(int keyCode)
      Mappings:
      Namespace Name Mixin selector
      named getTabForKey Lnet/minecraft/client/gui/widget/TabNavigationWidget;getTabForKey(I)I
      intermediary method_48990 Lnet/minecraft/class_8089;method_48990(I)I
      official c Lfqk;c(I)I
    • getCurrentTabIndex

      private int getCurrentTabIndex()
      Mappings:
      Namespace Name Mixin selector
      named getCurrentTabIndex Lnet/minecraft/client/gui/widget/TabNavigationWidget;getCurrentTabIndex()I
      intermediary method_48989 Lnet/minecraft/class_8089;method_48989()I
      official c Lfqk;c()I
    • getCurrentTabButton

      @Nullable private @Nullable TabButtonWidget getCurrentTabButton()
      Mappings:
      Namespace Name Mixin selector
      named getCurrentTabButton Lnet/minecraft/client/gui/widget/TabNavigationWidget;getCurrentTabButton()Lnet/minecraft/client/gui/widget/TabButtonWidget;
      intermediary method_49615 Lnet/minecraft/class_8089;method_49615()Lnet/minecraft/class_8209;
      official g Lfqk;g()Lfpo;