Package net.minecraft.client.gui.widget
Class OptionListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable,Widget
@Environment(CLIENT)
public class OptionListWidget
extends ElementListWidget<OptionListWidget.Component>
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/OptionListWidgetintermediary net/minecraft/class_353official git
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classstatic final recordprotected 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 class net.minecraft.client.gui.widget.ClickableWidget
ClickableWidget.InactivityIndicatingWidgetNested 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, itemHeightFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionOptionListWidget(MinecraftClient client, int width, GameOptionsScreen optionsScreen) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(List<ClickableWidget> widgets) voidaddAll(SimpleOption<?>[] options) voidvoidaddSingleOptionEntry(SimpleOption<?> option) voidaddWidgetEntry(ClickableWidget firstWidget, @Nullable ClickableWidget secondWidget) voidaddWidgetEntry(ClickableWidget firstWidget, SimpleOption<?> option, @Nullable ClickableWidget secondWidget) voidint@Nullable ClickableWidgetgetWidgetFor(SimpleOption<?> option) voidupdate(SimpleOption<?> simpleOption) Methods inherited from class net.minecraft.client.gui.widget.ElementListWidget
appendClickableNarrations, getNavigationPath, getType, isEntrySelectionAllowed, setFocusedMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntry, addEntryToTop, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clearEntriesExcept, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, getContentsHeightWithPadding, getDeltaYPerScroll, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollbarX, getSelectedOrNull, getYOfNextEntry, hoveredElement, position, position, position, removeEntries, removeEntry, removeEntryWithoutScrolling, renderEntry, renderList, renderWidget, replaceEntries, scrollTo, setEntryParentList, setFocused, setScrollY, setSelected, sort, swapEntriesOnPositionsMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDraggingMethods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, isInScrollbar, mouseScrolled, onRelease, overflows, refreshScrollMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawTextWithMargin, forEachChild, getAlpha, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getWidth, getX, getY, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, onClick, onDrag, playClickSound, playDownSound, render, setAlpha, setCursor, 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
getBorder, getNavigationFocus, isClickable, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods 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 aLgit;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 fLgit;f: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 nLgit;n:Lgus;
-
-
Constructor Details
-
OptionListWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/OptionListWidget;<init>(Lnet/minecraft/client/MinecraftClient;ILnet/minecraft/client/gui/screen/option/GameOptionsScreen;)Vintermediary <init>Lnet/minecraft/class_353;<init>(Lnet/minecraft/class_310;ILnet/minecraft/class_4667;)Vofficial <init>Lgit;<init>(Lgec;ILgus;)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 aLgit;a(Lgef;)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 aLgit;a([Lgef;)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 bLgit;b(Ljava/util/List;)V
-
addWidgetEntry
- 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 aLgit;a(Lght;Lght;)V
-
addWidgetEntry
public void addWidgetEntry(ClickableWidget firstWidget, SimpleOption<?> option, @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/option/SimpleOption;Lnet/minecraft/client/gui/widget/ClickableWidget;)Vintermediary method_76258Lnet/minecraft/class_353;method_76258(Lnet/minecraft/class_339;Lnet/minecraft/class_7172;Lnet/minecraft/class_339;)Vofficial aLgit;a(Lght;Lgef;Lght;)V
-
addHeader
- Mappings:
Namespace Name Mixin selector named addHeaderLnet/minecraft/client/gui/widget/OptionListWidget;addHeader(Lnet/minecraft/text/Text;)Vintermediary method_75365Lnet/minecraft/class_353;method_75365(Lnet/minecraft/class_2561;)Vofficial cLgit;c(Lyh;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<OptionListWidget.Component>- Mappings:
Namespace Name Mixin selector named getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Iofficial aLghp;a()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 bLgit;b(Lgef;)Lght;
-
applyAllPendingValues
public void applyAllPendingValues()- Mappings:
Namespace Name Mixin selector named applyAllPendingValuesLnet/minecraft/client/gui/widget/OptionListWidget;applyAllPendingValues()Vintermediary method_59869Lnet/minecraft/class_353;method_59869()Vofficial cLgit;c()V
-
update
- Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/client/gui/widget/OptionListWidget;update(Lnet/minecraft/client/option/SimpleOption;)Vintermediary method_75364Lnet/minecraft/class_353;method_75364(Lnet/minecraft/class_7172;)Vofficial cLgit;c(Lgef;)V
-