Class 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 ept
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 Lept;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 Lept;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 Lept;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 Lept;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 Lept;e:Ltj;
      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 Lept;f:Lequ;
      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 k Lept;k: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 l Lept;l:Leps;
      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 m Lept;m: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 n Lept;n: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> Lept;<init>(ILeps;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 Lept;a(Leps;I)Lept$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 Lept;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_ Lepl;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(Element focused)
      Specified by:
      setFocused in interface ParentElement
      Overrides:
      setFocused in class AbstractParentElement
      Mappings:
      Namespace Name Mixin selector
      official a Lepk;a(Lepl;)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

      public GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Specified by:
      getNavigationPath in interface ParentElement
      Mappings:
      Namespace Name Mixin selector
      official a Lepl;a(Lerj;)Leno;
      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 Lepk;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 s Lerc;s()Lerc$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 Lerf;b(Lere;)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 Lept;a(Lere;Lepe;)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(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Mappings:
      Namespace Name Mixin selector
      official a Lepa;a(Lehe;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • getNavigationFocus

      public ScreenRect getNavigationFocus()
      Specified by:
      getNavigationFocus in interface Element
      Mappings:
      Namespace Name Mixin selector
      official u Lepl;u()Lern;
      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 Lept;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 Lept;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 Lept;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 Lept;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 Lept;d()I
      intermediary method_48989 Lnet/minecraft/class_8089;method_48989()I
      named getCurrentTabIndex Lnet/minecraft/client/gui/widget/TabNavigationWidget;getCurrentTabIndex()I
    • getCurrentTabButton

      private TabButtonWidget getCurrentTabButton()
      Mappings:
      Namespace Name Mixin selector
      official e Lept;e()Lepe;
      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;