@Environment(value=CLIENT) public static class ButtonListWidget.ButtonEntry extends ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
Modifier and Type | Field and Description |
---|---|
private List<AbstractButtonWidget> |
buttons |
Modifier | Constructor and Description |
---|---|
private |
ButtonEntry(List<AbstractButtonWidget> buttons) |
Modifier and Type | Method and Description |
---|---|
List<? extends Element> |
children()
Gets a list of all child GUI elements.
|
static ButtonListWidget.ButtonEntry |
create(GameOptions options,
int width,
Option option) |
static ButtonListWidget.ButtonEntry |
create(GameOptions options,
int width,
Option firstOption,
Option secondOption) |
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
float tickDelta) |
getFocused, isDragging, setDragging, setFocused
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
isMouseOver, mouseMoved
private final List<AbstractButtonWidget> buttons
private ButtonEntry(List<AbstractButtonWidget> buttons)
public static ButtonListWidget.ButtonEntry create(GameOptions options, int width, Option option)
public static ButtonListWidget.ButtonEntry create(GameOptions options, int width, Option firstOption, @Nullable Option secondOption)
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
render
in class EntryListWidget.Entry<ButtonListWidget.ButtonEntry>