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, Selectable
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/TabNavigationWidget
intermediary net/minecraft/class_8089
official fqk
-
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 DirectionalLayoutWidget
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
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, 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 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
- 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
- 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;
-
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
- 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
- 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
- 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 interfaceElement
- Specified by:
setFocused
in interfaceParentElement
- 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
- Specified by:
setFocused
in interfaceParentElement
- Overrides:
setFocused
in classAbstractParentElement
- 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
-
children
Gets a list of all child GUI elements.- Specified by:
children
in interfaceParentElement
- 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
- Specified by:
getType
in interfaceSelectable
- 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
- Specified by:
appendNarrations
in interfaceNarratable
- 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
- 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
- Specified by:
render
in interfaceDrawable
- 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
-
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
- 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;
-