Class WorldListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
net.minecraft.client.gui.screen.world.WorldListWidget
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
@Environment(CLIENT) public class WorldListWidget extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WorldListWidget.Entry
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection
-
Field Summary
Fields Modifier and Type Field 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
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, WorldListWidget list)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
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
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
LOGGER
-
DATE_FORMAT
-
UNKNOWN_SERVER_LOCATION
-
WORLD_SELECTION_LOCATION
-
field_26606
-
field_26607
-
field_26608
-
field_26609
-
field_26610
-
parent
-
levels
-
-
Constructor Details
-
WorldListWidget
public WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, @Nullable WorldListWidget list)
-
-
Method Details
-
filter
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<WorldListWidget.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<WorldListWidget.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocused
in classEntryListWidget<WorldListWidget.Entry>
-
setSelected
- Overrides:
setSelected
in classEntryListWidget<WorldListWidget.Entry>
-
moveSelection
- Overrides:
moveSelection
in classEntryListWidget<WorldListWidget.Entry>
-
method_20159
-
getParent
-