@Environment(value=CLIENT) public static class ButtonListWidget.ButtonEntry extends ElementListWidget.Entry<ButtonListWidget.ButtonEntry>
Modifier and Type | Field and Description |
---|---|
private List<AbstractButtonWidget> |
buttons |
list
Modifier | Constructor and Description |
---|---|
private |
ButtonEntry(List<AbstractButtonWidget> buttons) |
Modifier and Type | Method and Description |
---|---|
List<? extends Element> |
children() |
static ButtonListWidget.ButtonEntry |
create(GameOptions options,
int width,
Option option) |
static ButtonListWidget.ButtonEntry |
create(GameOptions options,
int width,
Option firstOption,
Option secondOption) |
void |
render(int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean hovering,
float delta) |
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(int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean hovering, float delta)
render
in class EntryListWidget.Entry<ButtonListWidget.ButtonEntry>