@Environment(value=CLIENT) public class ButtonListWidget extends ElementListWidget<ButtonListWidget.ButtonEntry>
| Modifier and Type | Class and Description |
|---|---|
static class |
ButtonListWidget.ButtonEntry |
ElementListWidget.Entry<E extends ElementListWidget.Entry<E>>EntryListWidget.Entriesbottom, centerListVertically, client, headerHeight, height, itemHeight, left, renderHeader, renderSelection, right, top, width, yDragBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ButtonListWidget(MinecraftClient client,
int width,
int height,
int top,
int bottom,
int itemHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Option[] options) |
void |
addOptionEntry(Option firstOption,
Option secondOption) |
int |
addSingleOptionEntry(Option option) |
int |
getRowWidth() |
protected int |
getScrollbarPositionX() |
changeFocus, isSelectedItemaddEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderHoleBackground, renderList, replaceEntries, setLeftPos, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSizeisDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, focusOn, hoveredElement, keyReleased, setInitialFocusmouseMovedpublic ButtonListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
public int addSingleOptionEntry(Option option)
public void addAll(Option[] options)
public int getRowWidth()
getRowWidth in class EntryListWidget<ButtonListWidget.ButtonEntry>protected int getScrollbarPositionX()
getScrollbarPositionX in class EntryListWidget<ButtonListWidget.ButtonEntry>