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 classWorldListWidget.EntryNested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection -
Field Summary
Fields Modifier and Type Field Description private static DateFormatDATE_FORMATprivate static TextFROM_NEWER_VERSION_ONE_TOOLTIPprivate static TextFROM_NEWER_VERSION_TWO_TOOLTIPprivate List<LevelSummary>levelsprivate static TextLOCKED_TEXTprivate static LoggerLOGGERprivate SelectWorldScreenparentprivate static TextSNAPSHOT_ONE_TOOLTIPprivate static TextSNAPSHOT_TWO_TOOLTIPprivate static IdentifierUNKNOWN_SERVER_LOCATIONprivate static IdentifierWORLD_SELECTION_LOCATIONFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields 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 voidfilter(Supplier<String> supplier, boolean load)SelectWorldScreengetParent()intgetRowWidth()protected intgetScrollbarPositionX()protected booleanisFocused()Optional<WorldListWidget.Entry>method_20159()protected voidmoveSelection(EntryListWidget.MoveDirection direction)voidsetSelected(WorldListWidget.Entry entry)Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocusMethods 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, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods 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, method_33284, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
LOGGER
-
DATE_FORMAT
-
UNKNOWN_SERVER_LOCATION
-
WORLD_SELECTION_LOCATION
-
FROM_NEWER_VERSION_ONE_TOOLTIP
-
FROM_NEWER_VERSION_TWO_TOOLTIP
-
SNAPSHOT_ONE_TOOLTIP
-
SNAPSHOT_TWO_TOOLTIP
-
LOCKED_TEXT
-
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:
getScrollbarPositionXin classEntryListWidget<WorldListWidget.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<WorldListWidget.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<WorldListWidget.Entry>
-
setSelected
- Overrides:
setSelectedin classEntryListWidget<WorldListWidget.Entry>
-
moveSelection
- Overrides:
moveSelectionin classEntryListWidget<WorldListWidget.Entry>
-
method_20159
-
getParent
-