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 official fgb
intermediary net/minecraft/class_353
named net/minecraft/client/gui/widget/OptionListWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
Nested 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 int
private static final int
private final GameOptionsScreen
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeight
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields 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 TypeMethodDescriptionvoid
addAll
(List<ClickableWidget> widgets) void
addAll
(SimpleOption<?>[] options) void
addSingleOptionEntry
(SimpleOption<?> option) void
addWidgetEntry
(ClickableWidget firstWidget, @Nullable ClickableWidget secondWidget) getHoveredWidget
(double mouseX, double mouseY) int
getWidgetFor
(SimpleOption<?> option) Methods inherited from class net.minecraft.client.gui.widget.ElementListWidget
appendClickableNarrations, getNavigationPath, getType, isSelectedEntry, setFocused
Methods 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, updateScrollingState
Methods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocused
Methods 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, setY
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
getNavigationFocus, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyPressed, keyReleased
Methods 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 official a
Lfgb;a:I
intermediary field_49481
Lnet/minecraft/class_353;field_49481:I
named field_49481
Lnet/minecraft/client/gui/widget/OptionListWidget;field_49481:I
-
field_49482
private static final int field_49482- See Also:
- Mappings:
Namespace Name Mixin selector official m
Lfgb;m:I
intermediary field_49482
Lnet/minecraft/class_353;field_49482:I
named field_49482
Lnet/minecraft/client/gui/widget/OptionListWidget;field_49482:I
-
optionsScreen
- Mappings:
Namespace Name Mixin selector official n
Lfgb;n:Lfkv;
intermediary field_49483
Lnet/minecraft/class_353;field_49483:Lnet/minecraft/class_4667;
named optionsScreen
Lnet/minecraft/client/gui/widget/OptionListWidget;optionsScreen:Lnet/minecraft/client/gui/screen/option/GameOptionsScreen;
-
-
Constructor Details
-
OptionListWidget
public OptionListWidget(MinecraftClient client, int width, int int2, GameOptionsScreen optionsScreen) - Mappings:
Namespace Name Mixin selector official <init>
Lfgb;<init>(Lfde;IILfkv;)V
intermediary <init>
Lnet/minecraft/class_353;<init>(Lnet/minecraft/class_310;IILnet/minecraft/class_4667;)V
named <init>
Lnet/minecraft/client/gui/widget/OptionListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IILnet/minecraft/client/gui/screen/option/GameOptionsScreen;)V
-
-
Method Details
-
addSingleOptionEntry
- Mappings:
Namespace Name Mixin selector official a
Lfgb;a(Lfdh;)V
intermediary method_20406
Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_7172;)V
named addSingleOptionEntry
Lnet/minecraft/client/gui/widget/OptionListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/SimpleOption;)V
-
addAll
- Mappings:
Namespace Name Mixin selector official a
Lfgb;a([Lfdh;)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
-
addAll
- Mappings:
Namespace Name Mixin selector official a
Lfgb;a(Ljava/util/List;)V
intermediary method_58227
Lnet/minecraft/class_353;method_58227(Ljava/util/List;)V
named addAll
Lnet/minecraft/client/gui/widget/OptionListWidget;addAll(Ljava/util/List;)V
-
addWidgetEntry
public void addWidgetEntry(ClickableWidget firstWidget, @Nullable @Nullable ClickableWidget secondWidget) - Mappings:
Namespace Name Mixin selector official a
Lfgb;a(Lffc;Lffc;)V
intermediary method_20407
Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_339;Lnet/minecraft/class_339;)V
named addWidgetEntry
Lnet/minecraft/client/gui/widget/OptionListWidget;addWidgetEntry(Lnet/minecraft/client/gui/widget/ClickableWidget;Lnet/minecraft/client/gui/widget/ClickableWidget;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<OptionListWidget.WidgetEntry>
- Mappings:
Namespace Name Mixin selector official b
Lfez;b()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getWidgetFor
- Mappings:
Namespace Name Mixin selector official b
Lfgb;b(Lfdh;)Lffc;
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 e
Lfgb;e(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;
-