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, Element, Selectable
Mappings:
Namespace Name
official eus
intermediary net/minecraft/class_8089
named net/minecraft/client/gui/widget/TabNavigationWidget
  • Field Details

    • field_42489

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

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

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

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

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

      private final GridWidget grid
      Mappings:
      Namespace Name Mixin selector
      official f Leus;f:Levy;
      intermediary field_43080 Lnet/minecraft/class_8089;field_43080:Lnet/minecraft/class_7845;
      named grid Lnet/minecraft/client/gui/widget/TabNavigationWidget;grid:Lnet/minecraft/client/gui/widget/GridWidget;
    • tabNavWidth

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

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

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

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

    • TabNavigationWidget

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

    • builder

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

      public void setWidth(int width)
      Mappings:
      Namespace Name Mixin selector
      official a Leus;a(I)V
      intermediary method_48618 Lnet/minecraft/class_8089;method_48618(I)V
      named setWidth Lnet/minecraft/client/gui/widget/TabNavigationWidget;setWidth(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
      official b_ Leuk;b_(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(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
      official a Leuj;a(Leuk;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)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
      official a Leuk;a(Lewo;)Lesc;
      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;
    • 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
      official i Leuj;i()Ljava/util/List;
      intermediary method_25396 Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
      named children Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
    • getType

      public Selectable.SelectionType getType()
      Specified by:
      getType in interface Selectable
      Mappings:
      Namespace Name Mixin selector
      official q Lewg;q()Lewg$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 void appendNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendNarrations in interface Narratable
      Mappings:
      Namespace Name Mixin selector
      official b Lewj;b(Lewi;)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
    • appendNarrations

      protected void appendNarrations(NarrationMessageBuilder builder, TabButtonWidget button)
      Mappings:
      Namespace Name Mixin selector
      official a Leus;a(Lewi;Lety;)V
      intermediary method_49612 Lnet/minecraft/class_8089;method_49612(Lnet/minecraft/class_6382;Lnet/minecraft/class_8209;)V
      named appendNarrations Lnet/minecraft/client/gui/widget/TabNavigationWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/TabButtonWidget;)V
    • 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 Lets;a(Lesf;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
    • getNavigationFocus

      public ScreenRect getNavigationFocus()
      Specified by:
      getNavigationFocus in interface Element
      Mappings:
      Namespace Name Mixin selector
      official s Leuk;s()Lews;
      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;
    • init

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

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

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

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

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

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