@Environment(value=CLIENT) public class WorldListWidget extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
Modifier and Type | Class and Description |
---|---|
class |
WorldListWidget.Entry |
EntryListWidget.MoveDirection
Modifier and Type | Field and Description |
---|---|
private static DateFormat |
DATE_FORMAT |
private static Text |
field_26606 |
private static Text |
field_26607 |
private static Text |
field_26608 |
private static Text |
field_26609 |
private static Text |
field_26610 |
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, right, top, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_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> supplier,
boolean load) |
SelectWorldScreen |
getParent() |
int |
getRowWidth() |
protected int |
getScrollbarPositionX() |
protected boolean |
isFocused() |
Optional<WorldListWidget.Entry> |
method_20159() |
protected void |
moveSelection(EntryListWidget.MoveDirection direction) |
void |
setSelected(WorldListWidget.Entry entry) |
changeFocus
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, updateScrollingState, updateSize
isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
mouseMoved
private 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 static final Text field_26606
private static final Text field_26607
private static final Text field_26608
private static final Text field_26609
private static final Text field_26610
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(EntryListWidget.MoveDirection direction)
moveSelection
in class EntryListWidget<WorldListWidget.Entry>
public Optional<WorldListWidget.Entry> method_20159()
public SelectWorldScreen getParent()