Package net.minecraft.client.gui.widget
Class ButtonListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.ElementListWidget<ButtonListWidget.ButtonEntry>
net.minecraft.client.gui.widget.ButtonListWidget
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
@Environment(CLIENT) public class ButtonListWidget extends ElementListWidget<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name official dsi
intermediary net/minecraft/class_353
named net/minecraft/client/gui/widget/ButtonListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ButtonListWidget.ButtonEntry
Nested 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.EntryListWidget
EntryListWidget.Entries, EntryListWidget.MoveDirection
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
-
Method Summary
Modifier and Type Method Description void
addAll(Option[] options)
void
addOptionEntry(Option firstOption, Option secondOption)
int
addSingleOptionEntry(Option option)
AbstractButtonWidget
getButtonFor(Option option)
Optional<AbstractButtonWidget>
getHoveredButton(double mouseX, double mouseY)
int
getRowWidth()
protected int
getScrollbarPositionX()
Methods inherited from class net.minecraft.client.gui.widget.ElementListWidget
changeFocus, isSelectedItem
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Constructor Details
-
ButtonListWidget
public ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)- Mappings:
Namespace Name Mixin selector official <init>
Ldrq;<init>(Ldqk;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
Ldsi;a(Ldqn;)I
intermediary method_20406
Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_316;)I
named addSingleOptionEntry
Lnet/minecraft/client/gui/widget/ButtonListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/Option;)I
-
addOptionEntry
- Mappings:
Namespace Name Mixin selector official a
Ldsi;a(Ldqn;Ldqn;)V
intermediary method_20407
Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_316;Lnet/minecraft/class_316;)V
named addOptionEntry
Lnet/minecraft/client/gui/widget/ButtonListWidget;addOptionEntry(Lnet/minecraft/client/option/Option;Lnet/minecraft/client/option/Option;)V
-
addAll
- Mappings:
Namespace Name Mixin selector official a
Ldsi;a([Ldqn;)V
intermediary method_20408
Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_316;)V
named addAll
Lnet/minecraft/client/gui/widget/ButtonListWidget;addAll([Lnet/minecraft/client/option/Option;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name Mixin selector official d
Ldrq;d()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<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name Mixin selector official e
Ldrq;e()I
intermediary method_25329
Lnet/minecraft/class_350;method_25329()I
named getScrollbarPositionX
Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getButtonFor
- Mappings:
Namespace Name Mixin selector official b
Ldsi;b(Ldqn;)Ldrs;
intermediary method_31046
Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_316;)Lnet/minecraft/class_339;
named getButtonFor
Lnet/minecraft/client/gui/widget/ButtonListWidget;getButtonFor(Lnet/minecraft/client/option/Option;)Lnet/minecraft/client/gui/widget/AbstractButtonWidget;
-
getHoveredButton
- Mappings:
Namespace Name Mixin selector official c
Ldsi;c(DD)Ljava/util/Optional;
intermediary method_29624
Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;
named getHoveredButton
Lnet/minecraft/client/gui/widget/ButtonListWidget;getHoveredButton(DD)Ljava/util/Optional;
-