Package net.minecraft.client.gui.widget
Class ButtonListWidget.ButtonEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
net.minecraft.client.gui.widget.ButtonListWidget.ButtonEntry
- All Implemented Interfaces:
Element,ParentElement
- Enclosing class:
- ButtonListWidget
@Environment(CLIENT) public static class ButtonListWidget.ButtonEntry extends ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
-
Field Summary
Fields Modifier and Type Field Description private List<AbstractButtonWidget>buttons -
Constructor Summary
Constructors Modifier Constructor Description privateButtonEntry(List<AbstractButtonWidget> buttons) -
Method Summary
Modifier and Type Method Description List<? extends Element>children()Gets a list of all child GUI elements.static ButtonListWidget.ButtonEntrycreate(GameOptions options, int width, Option option)static ButtonListWidget.ButtonEntrycreate(GameOptions options, int width, Option firstOption, Option secondOption)voidrender(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)Methods inherited from class net.minecraft.client.gui.widget.ElementListWidget.Entry
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOverMethods 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
isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
buttons
-
-
Constructor Details
-
ButtonEntry
-
-
Method Details
-
create
-
create
public static ButtonListWidget.ButtonEntry create(GameOptions options, int width, Option firstOption, @Nullable Option secondOption) -
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)- Specified by:
renderin classEntryListWidget.Entry<ButtonListWidget.ButtonEntry>
-
children
Gets a list of all child GUI elements.
-