Package net.minecraft.client.gui.widget
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private final GridWidget
private final ImmutableList<TabButtonWidget>
private final TabManager
private int
private final ImmutableList<Tab>
private static final Text
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendNarrations
(NarrationMessageBuilder builder) protected void
appendNarrations
(NarrationMessageBuilder builder, TabButtonWidget button) static TabNavigationWidget.Builder
builder
(TabManager tabManager, int width) children()
Gets a list of all child GUI elements.private @Nullable TabButtonWidget
private int
@Nullable GuiNavigationPath
getNavigationPath
(GuiNavigation navigation) private int
getTabForKey
(int keyCode) getType()
void
init()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
selectTab
(int index, boolean clickSound) void
setFocused
(boolean focused) void
setFocused
(@Nullable Element focused) void
setWidth
(int width) boolean
trySwitchTabsWithKey
(int keyCode) Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, hoveredElement, isFocused, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
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
- 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
- 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;
-
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
- 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
- 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
- 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 interfaceElement
- Specified by:
setFocused
in interfaceParentElement
- 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
- Specified by:
setFocused
in interfaceParentElement
- Overrides:
setFocused
in classAbstractParentElement
- 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
-
children
Gets a list of all child GUI elements.- Specified by:
children
in interfaceParentElement
- 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
- Specified by:
getType
in interfaceSelectable
- 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
- Specified by:
appendNarrations
in interfaceNarratable
- 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
- 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
- Specified by:
render
in interfaceDrawable
- 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
-
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
- 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;
-