Class WorldListWidget
java.lang.Object
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,- Narratable,- Navigable,- ParentElement,- Selectable
@Environment(CLIENT)
public class WorldListWidget
extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - official - ezl- intermediary - net/minecraft/class_528- named - net/minecraft/client/gui/screen/world/WorldListWidget
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classfinal classNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final Text(package private) static final DateFormat(package private) static final Text(package private) static final Textprivate @Nullable List<LevelSummary>private CompletableFuture<List<LevelSummary>>private final WorldListWidget.LoadingEntry(package private) static final Text(package private) static final Loggerprivate final SelectWorldScreenprivate String(package private) static final Text(package private) static final Textprivate static final Identifier(package private) static final IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidgetbottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionWorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, String search, @Nullable WorldListWidget oldWidget) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendNarrations(NarrationMessageBuilder builder) protected voidintprotected intbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.(package private) voidload()private CompletableFuture<List<LevelSummary>>private voidvoidrender(DrawContext context, int mouseX, int mouseY, float delta) voidvoidprivate booleanshouldShow(String search, LevelSummary summary) private voidshow(@Nullable List<LevelSummary> levels) private voidprivate voidshowSummaries(String search, List<LevelSummary> summaries) private voidshowUnableToLoadScreen(Text message) private @Nullable List<LevelSummary>tryGet()Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidgetgetNavigationPathMethods inherited from class net.minecraft.client.gui.widget.EntryListWidgetaddEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clickedHeader, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNavigationFocus, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, renderBackground, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setFocused, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElementisDragging, setDraggingMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, hoveredElement, isFocused, keyReleased, setFocusedMethods inherited from interface net.minecraft.client.gui.SelectableisNarratable
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a:Lorg/slf4j/Logger;- intermediary - field_3238- Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;
 
- 
DATE_FORMAT- Mappings:
- Namespace - Name - Mixin selector - official - l- Lezl;l:Ljava/text/DateFormat;- intermediary - field_19132- Lnet/minecraft/class_528;field_19132:Ljava/text/DateFormat;- named - DATE_FORMAT- Lnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/text/DateFormat;
 
- 
UNKNOWN_SERVER_LOCATION- Mappings:
- Namespace - Name - Mixin selector - official - m- Lezl;m:Lacq;- intermediary - field_19133- Lnet/minecraft/class_528;field_19133:Lnet/minecraft/class_2960;- named - UNKNOWN_SERVER_LOCATION- Lnet/minecraft/client/gui/screen/world/WorldListWidget;UNKNOWN_SERVER_LOCATION:Lnet/minecraft/util/Identifier;
 
- 
WORLD_SELECTION_LOCATION- Mappings:
- Namespace - Name - Mixin selector - official - n- Lezl;n:Lacq;- intermediary - field_19134- Lnet/minecraft/class_528;field_19134:Lnet/minecraft/class_2960;- named - WORLD_SELECTION_LOCATION- Lnet/minecraft/client/gui/screen/world/WorldListWidget;WORLD_SELECTION_LOCATION:Lnet/minecraft/util/Identifier;
 
- 
FROM_NEWER_VERSION_FIRST_LINE- Mappings:
- Namespace - Name - Mixin selector - official - o- Lezl;o:Lsw;- intermediary - field_26606- Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;- named - FROM_NEWER_VERSION_FIRST_LINE- Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_FIRST_LINE:Lnet/minecraft/text/Text;
 
- 
FROM_NEWER_VERSION_SECOND_LINE- Mappings:
- Namespace - Name - Mixin selector - official - p- Lezl;p:Lsw;- intermediary - field_26607- Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;- named - FROM_NEWER_VERSION_SECOND_LINE- Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;
 
- 
SNAPSHOT_FIRST_LINE- Mappings:
- Namespace - Name - Mixin selector - official - q- Lezl;q:Lsw;- intermediary - field_26608- Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;- named - SNAPSHOT_FIRST_LINE- Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;
 
- 
SNAPSHOT_SECOND_LINE- Mappings:
- Namespace - Name - Mixin selector - official - r- Lezl;r:Lsw;- intermediary - field_26609- Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;- named - SNAPSHOT_SECOND_LINE- Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;
 
- 
LOCKED_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - s- Lezl;s:Lsw;- intermediary - field_26610- Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;- named - LOCKED_TEXT- Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;
 
- 
CONVERSION_TOOLTIP- Mappings:
- Namespace - Name - Mixin selector - official - t- Lezl;t:Lsw;- intermediary - field_34803- Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;- named - CONVERSION_TOOLTIP- Lnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;
 
- 
parent- Mappings:
- Namespace - Name - Mixin selector - official - u- Lezl;u:Lezg;- intermediary - field_3237- Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;- named - parent- Lnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
 
- 
levelsFuture- Mappings:
- Namespace - Name - Mixin selector - official - v- Lezl;v:Ljava/util/concurrent/CompletableFuture;- intermediary - field_39739- Lnet/minecraft/class_528;field_39739:Ljava/util/concurrent/CompletableFuture;- named - levelsFuture- Lnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;
 
- 
levels- Mappings:
- Namespace - Name - Mixin selector - official - w- Lezl;w:Ljava/util/List;- intermediary - field_39740- Lnet/minecraft/class_528;field_39740:Ljava/util/List;- named - levels- Lnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;
 
- 
search- Mappings:
- Namespace - Name - Mixin selector - official - x- Lezl;x:Ljava/lang/String;- intermediary - field_39738- Lnet/minecraft/class_528;field_39738:Ljava/lang/String;- named - search- Lnet/minecraft/client/gui/screen/world/WorldListWidget;search:Ljava/lang/String;
 
- 
loadingEntry- Mappings:
- Namespace - Name - Mixin selector - official - y- Lezl;y:Lezl$b;- intermediary - field_38994- Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;- named - loadingEntry- Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadingEntry:Lnet/minecraft/client/gui/screen/world/WorldListWidget$LoadingEntry;
 
 
- 
- 
Constructor Details- 
WorldListWidgetpublic WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, String search, @Nullable @Nullable WorldListWidget oldWidget) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lezl;<init>(Lezg;Lenn;IIIIILjava/lang/String;Lezl;)V- intermediary - <init>- Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIIILjava/lang/String;Lnet/minecraft/class_528;)V- named - <init>- Lnet/minecraft/client/gui/screen/world/WorldListWidget;<init>(Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;Lnet/minecraft/client/MinecraftClient;IIIIILjava/lang/String;Lnet/minecraft/client/gui/screen/world/WorldListWidget;)V
 
 
- 
- 
Method Details- 
clearEntriesprotected void clearEntries()- Overrides:
- clearEntriesin class- EntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lepc;j()V- intermediary - method_25339- Lnet/minecraft/class_350;method_25339()V- named - clearEntries- Lnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
 
- 
tryGet- Mappings:
- Namespace - Name - Mixin selector - official - v- Lezl;v()Ljava/util/List;- intermediary - method_44679- Lnet/minecraft/class_528;method_44679()Ljava/util/List;- named - tryGet- Lnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet()Ljava/util/List;
 
- 
loadvoid load()- Mappings:
- Namespace - Name - Mixin selector - official - w- Lezl;w()V- intermediary - method_44680- Lnet/minecraft/class_528;method_44680()V- named - load- Lnet/minecraft/client/gui/screen/world/WorldListWidget;load()V
 
- 
keyPressedpublic boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z
 
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- EntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqh;a(Leox;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
show- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Ljava/util/List;)V- intermediary - method_44678- Lnet/minecraft/class_528;method_44678(Ljava/util/List;)V- named - show- Lnet/minecraft/client/gui/screen/world/WorldListWidget;show(Ljava/util/List;)V
 
- 
setSearch- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Ljava/lang/String;)V- intermediary - method_44677- Lnet/minecraft/class_528;method_44677(Ljava/lang/String;)V- named - setSearch- Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSearch(Ljava/lang/String;)V
 
- 
loadLevels- Mappings:
- Namespace - Name - Mixin selector - official - x- Lezl;x()Ljava/util/concurrent/CompletableFuture;- intermediary - method_43462- Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;- named - loadLevels- Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;
 
- 
showSummaries- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Ljava/lang/String;Ljava/util/List;)V- intermediary - method_43454- Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)V- named - showSummaries- Lnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)V
 
- 
shouldShow- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Ljava/lang/String;Ldyz;)Z- intermediary - method_43453- Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Z- named - shouldShow- Lnet/minecraft/client/gui/screen/world/WorldListWidget;shouldShow(Ljava/lang/String;Lnet/minecraft/world/level/storage/LevelSummary;)Z
 
- 
showLoadingScreenprivate void showLoadingScreen()- Mappings:
- Namespace - Name - Mixin selector - official - y- Lezl;y()V- intermediary - method_43463- Lnet/minecraft/class_528;method_43463()V- named - showLoadingScreen- Lnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()V
 
- 
narrateScreenIfNarrationEnabledprivate void narrateScreenIfNarrationEnabled()- Mappings:
- Namespace - Name - Mixin selector - official - z- Lezl;z()V- intermediary - method_43464- Lnet/minecraft/class_528;method_43464()V- named - narrateScreenIfNarrationEnabled- Lnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()V
 
- 
showUnableToLoadScreen- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Lsw;)V- intermediary - method_43460- Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)V- named - showUnableToLoadScreen- Lnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)V
 
- 
getScrollbarPositionXprotected int getScrollbarPositionX()- Overrides:
- getScrollbarPositionXin class- EntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lepc;c()I- intermediary - method_25329- Lnet/minecraft/class_350;method_25329()I- named - getScrollbarPositionX- Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
 
- 
getRowWidthpublic int getRowWidth()- Overrides:
- getRowWidthin class- EntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lepc;b()I- intermediary - method_25322- Lnet/minecraft/class_350;method_25322()I- named - getRowWidth- Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
 
- 
setSelected- Overrides:
- setSelectedin class- EntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lezl;a(Lezl$a;)V- intermediary - method_20157- Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)V- named - setSelected- Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
 
- 
getSelectedAsOptional- Mappings:
- Namespace - Name - Mixin selector - official - d- Lezl;d()Ljava/util/Optional;- intermediary - method_20159- Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;- named - getSelectedAsOptional- Lnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;
 
- 
getParent- Mappings:
- Namespace - Name - Mixin selector - official - e- Lezl;e()Lezg;- intermediary - method_2752- Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;- named - getParent- Lnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
 
- 
appendNarrations- Specified by:
- appendNarrationsin interface- Narratable
- Overrides:
- appendNarrationsin class- AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lesq;b(Lesp;)V- intermediary - method_37020- Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V- named - appendNarrations- Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
 
 
-