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/TabNavigationWidgetintermediary net/minecraft/class_8089official gkh
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate final DirectionalLayoutWidgetprivate final ImmutableList<TabButtonWidget> private final TabManagerprivate intprivate final ImmutableList<Tab> private static final Text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendNarrations(NarrationMessageBuilder builder) protected voidappendNarrations(NarrationMessageBuilder builder, TabButtonWidget button) static TabNavigationWidget.Builderbuilder(TabManager tabManager, int width) children()Gets a list of all child GUI elements.private @Nullable TabButtonWidgetprivate intgetNavigationPath(GuiNavigation navigation) private intgetTabForKey(int index, KeyInput keyInput) private intgetTabForKey(KeyInput keyInput) getTabs()getType()voidinit()booleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.booleankeyPressed(KeyInput input) Callback for when a key down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidselectTab(int index, boolean clickSound) voidsetFocused(boolean focused) voidsetFocused(@Nullable Element focused) voidsetTabActive(int index, boolean active) voidsetTabTooltip(int index, @Nullable Tooltip tooltip) voidsetWidth(int width) Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDraggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, isClickable, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedParts, isInteractable
-
Field Details
-
field_42489
private static final int field_42489- See Also:
- Mappings:
Namespace Name Mixin selector named field_42489Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_42489:Iintermediary field_42489Lnet/minecraft/class_8089;field_42489:Iofficial aLgkh;a:I
-
field_43076
private static final int field_43076- See Also:
- Mappings:
Namespace Name Mixin selector named field_43076Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43076:Iintermediary field_43076Lnet/minecraft/class_8089;field_43076:Iofficial bLgkh;b:I
-
field_43077
private static final int field_43077- See Also:
- Mappings:
Namespace Name Mixin selector named field_43077Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43077:Iintermediary field_43077Lnet/minecraft/class_8089;field_43077:Iofficial cLgkh;c:I
-
field_43078
private static final int field_43078- See Also:
- Mappings:
Namespace Name Mixin selector named field_43078Lnet/minecraft/client/gui/widget/TabNavigationWidget;field_43078:Iintermediary field_43078Lnet/minecraft/class_8089;field_43078:Iofficial dLgkh;d:I
-
USAGE_NARRATION_TEXT
- Mappings:
Namespace Name Mixin selector named USAGE_NARRATION_TEXTLnet/minecraft/client/gui/widget/TabNavigationWidget;USAGE_NARRATION_TEXT:Lnet/minecraft/text/Text;intermediary field_43079Lnet/minecraft/class_8089;field_43079:Lnet/minecraft/class_2561;official eLgkh;e:Lym;
-
grid
- Mappings:
Namespace Name Mixin selector named gridLnet/minecraft/client/gui/widget/TabNavigationWidget;grid:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;intermediary field_43080Lnet/minecraft/class_8089;field_43080:Lnet/minecraft/class_8667;official fLgkh;f:Lgmk;
-
tabManager
- Mappings:
Namespace Name Mixin selector named tabManagerLnet/minecraft/client/gui/widget/TabNavigationWidget;tabManager:Lnet/minecraft/client/gui/tab/TabManager;intermediary field_42146Lnet/minecraft/class_8089;field_42146:Lnet/minecraft/class_8088;official hLgkh;h:Lgkg;
-
tabs
- Mappings:
Namespace Name Mixin selector named tabsLnet/minecraft/client/gui/widget/TabNavigationWidget;tabs:Lcom/google/common/collect/ImmutableList;intermediary field_42147Lnet/minecraft/class_8089;field_42147:Lcom/google/common/collect/ImmutableList;official iLgkh;i:Lcom/google/common/collect/ImmutableList;
-
tabButtons
- Mappings:
Namespace Name Mixin selector named tabButtonsLnet/minecraft/client/gui/widget/TabNavigationWidget;tabButtons:Lcom/google/common/collect/ImmutableList;intermediary field_42148Lnet/minecraft/class_8089;field_42148:Lcom/google/common/collect/ImmutableList;official jLgkh;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;)Vintermediary <init>Lnet/minecraft/class_8089;<init>(ILnet/minecraft/class_8088;Ljava/lang/Iterable;)Vofficial <init>Lgkh;<init>(ILgkg;Ljava/lang/Iterable;)V
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/client/gui/widget/TabNavigationWidget;builder(Lnet/minecraft/client/gui/tab/TabManager;I)Lnet/minecraft/client/gui/widget/TabNavigationWidget$Builder;intermediary method_48623Lnet/minecraft/class_8089;method_48623(Lnet/minecraft/class_8088;I)Lnet/minecraft/class_8089$class_8090;official aLgkh;a(Lgkg;I)Lgkh$a;
-
setWidth
public void setWidth(int width) - Mappings:
Namespace Name Mixin selector named setWidthLnet/minecraft/client/gui/widget/TabNavigationWidget;setWidth(I)Vintermediary method_48618Lnet/minecraft/class_8089;method_48618(I)Vofficial aLgkh;a(I)V
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector named isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial a_Lgjy;a_(DD)Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceElement- Specified by:
setFocusedin interfaceParentElement- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)Vintermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vofficial bLgjy;b(Z)V
-
setFocused
- Specified by:
setFocusedin interfaceParentElement- Overrides:
setFocusedin classAbstractParentElement- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)Vintermediary method_25395Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)Vofficial aLgjx;a(Lgjy;)V
-
children
Gets a list of all child GUI elements.- Specified by:
childrenin interfaceParentElement- Mappings:
Namespace Name Mixin selector named childrenLnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;intermediary method_25396Lnet/minecraft/class_4069;method_25396()Ljava/util/List;official aJ_Lgjx;aJ_()Ljava/util/List;
-
getTabs
- Mappings:
Namespace Name Mixin selector named getTabsLnet/minecraft/client/gui/widget/TabNavigationWidget;getTabs()Ljava/util/List;intermediary method_71284Lnet/minecraft/class_8089;method_71284()Ljava/util/List;official dLgkh;d()Ljava/util/List;
-
getType
- Specified by:
getTypein interfaceSelectable- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;intermediary method_37018Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;official yLgmn;y()Lgmn$a;
-
appendNarrations
- Specified by:
appendNarrationsin interfaceNarratable- Mappings:
Namespace Name Mixin selector named appendNarrationsLnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_37020Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)Vofficial bLgmq;b(Lgmp;)V
-
appendNarrations
- Mappings:
Namespace Name Mixin selector named appendNarrationsLnet/minecraft/client/gui/widget/TabNavigationWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/TabButtonWidget;)Vintermediary method_49612Lnet/minecraft/class_8089;method_49612(Lnet/minecraft/class_6382;Lnet/minecraft/class_8209;)Vofficial aLgkh;a(Lgmp;Lgic;)V
-
render
- Specified by:
renderin interfaceDrawable- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLghu;a(Lggd;IIF)V
-
init
public void init()- Mappings:
Namespace Name Mixin selector named initLnet/minecraft/client/gui/widget/TabNavigationWidget;init()Vintermediary method_49613Lnet/minecraft/class_8089;method_49613()Vofficial hLgkh;h()V
-
selectTab
public void selectTab(int index, boolean clickSound) - Mappings:
Namespace Name Mixin selector named selectTabLnet/minecraft/client/gui/widget/TabNavigationWidget;selectTab(IZ)Vintermediary method_48987Lnet/minecraft/class_8089;method_48987(IZ)Vofficial aLgkh;a(IZ)V
-
setTabActive
public void setTabActive(int index, boolean active) - Mappings:
Namespace Name Mixin selector named setTabActiveLnet/minecraft/client/gui/widget/TabNavigationWidget;setTabActive(IZ)Vintermediary method_71522Lnet/minecraft/class_8089;method_71522(IZ)Vofficial bLgkh;b(IZ)V
-
setTabTooltip
- Mappings:
Namespace Name Mixin selector named setTabTooltipLnet/minecraft/client/gui/widget/TabNavigationWidget;setTabTooltip(ILnet/minecraft/client/gui/tooltip/Tooltip;)Vintermediary method_71521Lnet/minecraft/class_8089;method_71521(ILnet/minecraft/class_7919;)Vofficial aLgkh;a(ILgie;)V
-
keyPressed
Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLgjy;a(Lgwl;)Z
-
getTabForKey
- Mappings:
Namespace Name Mixin selector named getTabForKeyLnet/minecraft/client/gui/widget/TabNavigationWidget;getTabForKey(Lnet/minecraft/client/input/KeyInput;)Iintermediary method_48990Lnet/minecraft/class_8089;method_48990(Lnet/minecraft/class_11908;)Iofficial cLgkh;c(Lgwl;)I
-
getTabForKey
- Mappings:
Namespace Name Mixin selector named getTabForKeyLnet/minecraft/client/gui/widget/TabNavigationWidget;getTabForKey(ILnet/minecraft/client/input/KeyInput;)Iintermediary method_71520Lnet/minecraft/class_8089;method_71520(ILnet/minecraft/class_11908;)Iofficial aLgkh;a(ILgwl;)I
-
getCurrentTabIndex
private int getCurrentTabIndex()- Mappings:
Namespace Name Mixin selector named getCurrentTabIndexLnet/minecraft/client/gui/widget/TabNavigationWidget;getCurrentTabIndex()Iintermediary method_48989Lnet/minecraft/class_8089;method_48989()Iofficial iLgkh;i()I
-
getCurrentTabButton
- Mappings:
Namespace Name Mixin selector named getCurrentTabButtonLnet/minecraft/client/gui/widget/TabNavigationWidget;getCurrentTabButton()Lnet/minecraft/client/gui/widget/TabButtonWidget;intermediary method_49615Lnet/minecraft/class_8089;method_49615()Lnet/minecraft/class_8209;official jLgkh;j()Lgic;
-