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<E>
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 eyd
intermediary net/minecraft/class_353
named net/minecraft/client/gui/widget/OptionListWidget
-
Nested Class Summary
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
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
ConstructorDescriptionOptionListWidget
(MinecraftClient client, int width, int height, int y, int itemHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(SimpleOption<?>[] options) void
addOptionEntry
(SimpleOption<?> firstOption, @Nullable SimpleOption<?> secondOption) int
addSingleOptionEntry
(SimpleOption<?> option) getHoveredWidget
(double mouseX, double mouseY) int
protected 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, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, isMouseOver, isSelectButton, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, renderWidget, replaceEntries, setEntryParentList, setRenderBackground, 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, focusOn, getFocusedPath, hoveredElement, keyPressed, keyReleased
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Constructor Details
-
OptionListWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lexb;<init>(Levi;IIII)V
intermediary <init>
Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIII)V
named <init>
Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIII)V
-
-
Method Details
-
addSingleOptionEntry
- Mappings:
Namespace Name Mixin selector official a
Leyd;a(Levl;)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
-
addOptionEntry
public void addOptionEntry(SimpleOption<?> firstOption, @Nullable @Nullable SimpleOption<?> secondOption) - Mappings:
Namespace Name Mixin selector official a
Leyd;a(Levl;Levl;)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
Leyd;a([Levl;)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
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<OptionListWidget.WidgetEntry>
- Mappings:
Namespace Name Mixin selector official b
Lexb;b()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<OptionListWidget.WidgetEntry>
- Mappings:
Namespace Name Mixin selector official c
Lexb;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
Leyd;b(Levl;)Lexe;
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
Leyd;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;
-