Package net.minecraft.client.gui.widget
Class OptionListWidget
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.ElementListWidget<OptionListWidget.WidgetEntry>
net.minecraft.client.gui.widget.OptionListWidget
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- ParentElement,- Selectable
@Environment(CLIENT)
public class OptionListWidget
extends ElementListWidget<OptionListWidget.WidgetEntry>
- Mappings:
- Namespace - Name - official - eqd- intermediary - net/minecraft/class_353- named - net/minecraft/client/gui/widget/OptionListWidget
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ElementListWidgetElementListWidget.Entry<E extends ElementListWidget.Entry<E>>Nested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFields inherited from class net.minecraft.client.gui.widget.EntryListWidgetbottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionOptionListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAll(SimpleOption<?>[] options) voidaddOptionEntry(SimpleOption<?> firstOption, @Nullable SimpleOption<?> secondOption) intaddSingleOptionEntry(SimpleOption<?> option) getHoveredWidget(double mouseX, double mouseY) intprotected intgetWidgetFor(SimpleOption<?> option) Methods inherited from class net.minecraft.client.gui.widget.ElementListWidgetappendNarrations, getNavigationPath, getType, isSelectedEntry, setFocusedMethods inherited from class net.minecraft.client.gui.widget.EntryListWidgetaddEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNavigationFocus, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, isMouseOver, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, render, renderBackground, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setEntryParentList, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElementisDragging, setDraggingMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, hoveredElement, isFocused, keyPressed, keyReleased, setFocusedMethods inherited from interface net.minecraft.client.gui.SelectableisNarratable
- 
Constructor Details- 
OptionListWidgetpublic OptionListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lepc;<init>(Lenn;IIIII)V- intermediary - <init>- Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)V- named - <init>- Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
 
 
- 
- 
Method Details- 
addSingleOptionEntry- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqd;a(Lenq;)I- intermediary - method_20406- Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_7172;)I- named - addSingleOptionEntry- Lnet/minecraft/client/gui/widget/OptionListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/SimpleOption;)I
 
- 
addOptionEntrypublic void addOptionEntry(SimpleOption<?> firstOption, @Nullable @Nullable SimpleOption<?> secondOption) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leqd;a(Lenq;Lenq;)V- intermediary - method_20407- Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_7172;Lnet/minecraft/class_7172;)V- named - addOptionEntry- Lnet/minecraft/client/gui/widget/OptionListWidget;addOptionEntry(Lnet/minecraft/client/option/SimpleOption;Lnet/minecraft/client/option/SimpleOption;)V
 
- 
addAll- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqd;a([Lenq;)V- intermediary - method_20408- Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_7172;)V- named - addAll- Lnet/minecraft/client/gui/widget/OptionListWidget;addAll([Lnet/minecraft/client/option/SimpleOption;)V
 
- 
getRowWidthpublic int getRowWidth()- Overrides:
- getRowWidthin class- EntryListWidget<OptionListWidget.WidgetEntry>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lepc;b()I- intermediary - method_25322- Lnet/minecraft/class_350;method_25322()I- named - getRowWidth- Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
 
- 
getScrollbarPositionXprotected int getScrollbarPositionX()- Overrides:
- getScrollbarPositionXin class- EntryListWidget<OptionListWidget.WidgetEntry>
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lepc;c()I- intermediary - method_25329- Lnet/minecraft/class_350;method_25329()I- named - getScrollbarPositionX- Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
 
- 
getWidgetFor- Mappings:
- Namespace - Name - Mixin selector - official - b- Leqd;b(Lenq;)Lepf;- intermediary - method_31046- Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_7172;)Lnet/minecraft/class_339;- named - getWidgetFor- Lnet/minecraft/client/gui/widget/OptionListWidget;getWidgetFor(Lnet/minecraft/client/option/SimpleOption;)Lnet/minecraft/client/gui/widget/ClickableWidget;
 
- 
getHoveredWidget- Mappings:
- Namespace - Name - Mixin selector - official - c- Leqd;c(DD)Ljava/util/Optional;- intermediary - method_29624- Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;- named - getHoveredWidget- Lnet/minecraft/client/gui/widget/OptionListWidget;getHoveredWidget(DD)Ljava/util/Optional;
 
 
-