@Environment(value=CLIENT) public class WorldListWidget extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
| Modifier and Type | Class and Description |
|---|---|
class |
WorldListWidget.Entry |
| Modifier and Type | Field and Description |
|---|---|
private static DateFormat |
DATE_FORMAT |
private List<LevelSummary> |
levels |
private static Logger |
LOGGER |
private SelectWorldScreen |
parent |
private static Identifier |
UNKNOWN_SERVER_LOCATION |
private static Identifier |
WORLD_SELECTION_LOCATION |
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, renderHeader, renderSelection, right, top, width, yDragBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
WorldListWidget(SelectWorldScreen parent,
MinecraftClient client,
int width,
int height,
int top,
int bottom,
int itemHeight,
Supplier<String> searchFilter,
WorldListWidget list) |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(Supplier<String> filter,
boolean load) |
SelectWorldScreen |
getParent() |
int |
getRowWidth() |
protected int |
getScrollbarPositionX() |
protected boolean |
isFocused() |
Optional<WorldListWidget.Entry> |
method_20159() |
protected void |
moveSelection(int amount) |
void |
setSelected(WorldListWidget.Entry entry) |
changeFocusaddEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getRowLeft, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderHoleBackground, renderList, replaceEntries, setLeftPos, setRenderHeader, setScrollAmount, 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, setInitialFocusmouseMovedprivate static final Logger LOGGER
private static final DateFormat DATE_FORMAT
private static final Identifier UNKNOWN_SERVER_LOCATION
private static final Identifier WORLD_SELECTION_LOCATION
private final SelectWorldScreen parent
@Nullable private List<LevelSummary> levels
public WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, @Nullable WorldListWidget list)
protected int getScrollbarPositionX()
getScrollbarPositionX in class EntryListWidget<WorldListWidget.Entry>public int getRowWidth()
getRowWidth in class EntryListWidget<WorldListWidget.Entry>protected boolean isFocused()
isFocused in class EntryListWidget<WorldListWidget.Entry>public void setSelected(@Nullable WorldListWidget.Entry entry)
setSelected in class EntryListWidget<WorldListWidget.Entry>protected void moveSelection(int amount)
moveSelection in class EntryListWidget<WorldListWidget.Entry>public Optional<WorldListWidget.Entry> method_20159()
public SelectWorldScreen getParent()