Package net.minecraft.client.gui.widget
Class OptionListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
net.minecraft.client.gui.widget.EntryListWidget<OptionListWidget.WidgetEntry>
net.minecraft.client.gui.widget.ElementListWidget<OptionListWidget.WidgetEntry>
net.minecraft.client.gui.widget.OptionListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable,Widget
@Environment(CLIENT)
public class OptionListWidget
extends ElementListWidget<OptionListWidget.WidgetEntry>
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/OptionListWidgetintermediary net/minecraft/class_353official fia
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ElementListWidget
ElementListWidget.Entry<E extends ElementListWidget.Entry<E>>Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final GameOptionsScreenFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeightFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionOptionListWidget(MinecraftClient client, int width, int int2, GameOptionsScreen optionsScreen) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(List<ClickableWidget> widgets) voidaddAll(SimpleOption<?>[] options) voidaddSingleOptionEntry(SimpleOption<?> option) voidaddWidgetEntry(ClickableWidget firstWidget, @Nullable ClickableWidget secondWidget) getHoveredWidget(double mouseX, double mouseY) intgetWidgetFor(SimpleOption<?> option) voidMethods inherited from class net.minecraft.client.gui.widget.ElementListWidget
appendClickableNarrations, getNavigationPath, getType, isSelectedEntry, setFocusedMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, ensureVisible, getDefaultScrollbarX, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollbarX, getSelectedOrNull, isMouseOver, isScrollbarVisible, isSelectButton, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, position, position, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, renderWidget, replaceEntries, setEntryParentList, setRenderHeader, setScrollAmount, setSelected, updateScrollingStateMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods 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
getNavigationFocus, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyPressed, keyReleasedMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_49481
private static final int field_49481- See Also:
- Mappings:
Namespace Name Mixin selector named field_49481Lnet/minecraft/client/gui/widget/OptionListWidget;field_49481:Iintermediary field_49481Lnet/minecraft/class_353;field_49481:Iofficial aLfia;a:I
-
field_49482
private static final int field_49482- See Also:
- Mappings:
Namespace Name Mixin selector named field_49482Lnet/minecraft/client/gui/widget/OptionListWidget;field_49482:Iintermediary field_49482Lnet/minecraft/class_353;field_49482:Iofficial mLfia;m:I
-
optionsScreen
- Mappings:
Namespace Name Mixin selector named optionsScreenLnet/minecraft/client/gui/widget/OptionListWidget;optionsScreen:Lnet/minecraft/client/gui/screen/option/GameOptionsScreen;intermediary field_49483Lnet/minecraft/class_353;field_49483:Lnet/minecraft/class_4667;official nLfia;n:Lfmu;
-
-
Constructor Details
-
OptionListWidget
public OptionListWidget(MinecraftClient client, int width, int int2, GameOptionsScreen optionsScreen) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/OptionListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IILnet/minecraft/client/gui/screen/option/GameOptionsScreen;)Vintermediary <init>Lnet/minecraft/class_353;<init>(Lnet/minecraft/class_310;IILnet/minecraft/class_4667;)Vofficial <init>Lfia;<init>(Lffe;IILfmu;)V
-
-
Method Details
-
addSingleOptionEntry
- Mappings:
Namespace Name Mixin selector named addSingleOptionEntryLnet/minecraft/client/gui/widget/OptionListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/SimpleOption;)Vintermediary method_20406Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_7172;)Vofficial aLfia;a(Lffh;)V
-
addAll
- Mappings:
Namespace Name Mixin selector named addAllLnet/minecraft/client/gui/widget/OptionListWidget;addAll([Lnet/minecraft/client/option/SimpleOption;)Vintermediary method_20408Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_7172;)Vofficial aLfia;a([Lffh;)V
-
addAll
- Mappings:
Namespace Name Mixin selector named addAllLnet/minecraft/client/gui/widget/OptionListWidget;addAll(Ljava/util/List;)Vintermediary method_58227Lnet/minecraft/class_353;method_58227(Ljava/util/List;)Vofficial aLfia;a(Ljava/util/List;)V
-
addWidgetEntry
public void addWidgetEntry(ClickableWidget firstWidget, @Nullable @Nullable ClickableWidget secondWidget) - Mappings:
Namespace Name Mixin selector named addWidgetEntryLnet/minecraft/client/gui/widget/OptionListWidget;addWidgetEntry(Lnet/minecraft/client/gui/widget/ClickableWidget;Lnet/minecraft/client/gui/widget/ClickableWidget;)Vintermediary method_20407Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_339;Lnet/minecraft/class_339;)Vofficial aLfia;a(Lfhb;Lfhb;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<OptionListWidget.WidgetEntry>- Mappings:
Namespace Name Mixin selector named getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Iofficial bLfgy;b()I
-
getWidgetFor
- Mappings:
Namespace Name Mixin selector named getWidgetForLnet/minecraft/client/gui/widget/OptionListWidget;getWidgetFor(Lnet/minecraft/client/option/SimpleOption;)Lnet/minecraft/client/gui/widget/ClickableWidget;intermediary method_31046Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_7172;)Lnet/minecraft/class_339;official bLfia;b(Lffh;)Lfhb;
-
method_59869
public void method_59869()- Mappings:
Namespace Name Mixin selector named method_59869Lnet/minecraft/client/gui/widget/OptionListWidget;method_59869()Vintermediary method_59869Lnet/minecraft/class_353;method_59869()Vofficial cLfia;c()V
-
getHoveredWidget
- Mappings:
Namespace Name Mixin selector named getHoveredWidgetLnet/minecraft/client/gui/widget/OptionListWidget;getHoveredWidget(DD)Ljava/util/Optional;intermediary method_29624Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;official eLfia;e(DD)Ljava/util/Optional;
-