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,Narratable,ParentElement,Selectable
@Environment(CLIENT)
public class ButtonListWidget
extends ElementListWidget<ButtonListWidget.ButtonEntry>
- Mappings:
Namespace Name official emfintermediary net/minecraft/class_353named net/minecraft/client/gui/widget/ButtonListWidget
-
Nested Class Summary
Nested ClassesNested 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
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(SimpleOption<?>[] options) voidaddOptionEntry(SimpleOption<?> firstOption, @Nullable SimpleOption<?> secondOption) intaddSingleOptionEntry(SimpleOption<?> option) getButtonFor(SimpleOption<?> option) getHoveredButton(double mouseX, double mouseY) intprotected intMethods inherited from class net.minecraft.client.gui.widget.ElementListWidget
appendNarrations, getType, isSelectedEntry, method_48205, setFocusedMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, isMouseOver, method_35721, method_48197, method_48198, method_48199, method_48200, method_48202, 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.AbstractParentElement
isDragging, setDraggingMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffsetMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, isFocused, keyPressed, keyReleased, method_48218, setFocusedMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Constructor Details
-
ButtonListWidget
public ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) - Mappings:
Namespace Name Mixin selector official <init>Lelh;<init>(Lejt;IIIII)Vintermediary <init>Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
Method Details
-
addSingleOptionEntry
- Mappings:
Namespace Name Mixin selector official aLemf;a(Lejw;)Iintermediary method_20406Lnet/minecraft/class_353;method_20406(Lnet/minecraft/class_7172;)Inamed addSingleOptionEntryLnet/minecraft/client/gui/widget/ButtonListWidget;addSingleOptionEntry(Lnet/minecraft/client/option/SimpleOption;)I
-
addOptionEntry
public void addOptionEntry(SimpleOption<?> firstOption, @Nullable @Nullable SimpleOption<?> secondOption) - Mappings:
Namespace Name Mixin selector official aLemf;a(Lejw;Lejw;)Vintermediary method_20407Lnet/minecraft/class_353;method_20407(Lnet/minecraft/class_7172;Lnet/minecraft/class_7172;)Vnamed addOptionEntryLnet/minecraft/client/gui/widget/ButtonListWidget;addOptionEntry(Lnet/minecraft/client/option/SimpleOption;Lnet/minecraft/client/option/SimpleOption;)V
-
addAll
- Mappings:
Namespace Name Mixin selector official aLemf;a([Lejw;)Vintermediary method_20408Lnet/minecraft/class_353;method_20408([Lnet/minecraft/class_7172;)Vnamed addAllLnet/minecraft/client/gui/widget/ButtonListWidget;addAll([Lnet/minecraft/client/option/SimpleOption;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<ButtonListWidget.ButtonEntry>- Mappings:
Namespace Name Mixin selector official bLelh;b()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<ButtonListWidget.ButtonEntry>- Mappings:
Namespace Name Mixin selector official cLelh;c()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getButtonFor
- Mappings:
Namespace Name Mixin selector official bLemf;b(Lejw;)Lelj;intermediary method_31046Lnet/minecraft/class_353;method_31046(Lnet/minecraft/class_7172;)Lnet/minecraft/class_339;named getButtonForLnet/minecraft/client/gui/widget/ButtonListWidget;getButtonFor(Lnet/minecraft/client/option/SimpleOption;)Lnet/minecraft/client/gui/widget/ClickableWidget;
-
getHoveredButton
- Mappings:
Namespace Name Mixin selector official cLemf;c(DD)Ljava/util/Optional;intermediary method_29624Lnet/minecraft/class_353;method_29624(DD)Ljava/util/Optional;named getHoveredButtonLnet/minecraft/client/gui/widget/ButtonListWidget;getHoveredButton(DD)Ljava/util/Optional;
-