Class WorldListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
net.minecraft.client.gui.widget.EntryListWidget<WorldListWidget.Entry>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
net.minecraft.client.gui.screen.world.WorldListWidget
- All Implemented Interfaces:
 Drawable,Element,Narratable,Navigable,ParentElement,Selectable,Widget
@Environment(CLIENT)
public class WorldListWidget
extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
 Namespace Name named net/minecraft/client/gui/screen/world/WorldListWidgetintermediary net/minecraft/class_528official fzk
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classfinal classNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType - 
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Textstatic final DateTimeFormatter(package private) static final Identifier(package private) static final Identifier(package private) static final Text(package private) static final Text(package private) static final Text(package private) static final Text(package private) static final Identifier(package private) static final Identifierprivate @Nullable List<LevelSummary> private CompletableFuture<List<LevelSummary>> private final WorldListWidget.LoadingEntry(package private) static final Text(package private) static final Logger(package private) static final Identifier(package private) static final Identifierprivate final SelectWorldScreenprivate String(package private) static final Text(package private) static final Text(package private) static final Identifier(package private) static final IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeightFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL - 
Constructor Summary
ConstructorsConstructorDescriptionWorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int y, int itemHeight, String search, @Nullable WorldListWidget oldWidget)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidintbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.(package private) voidload()private CompletableFuture<List<LevelSummary>> private voidvoidrenderWidget(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.AlwaysSelectedEntryListWidget
getNavigationPathMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clickedHeader, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, ensureVisible, getDefaultScrollbarX, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollbarX, getSelectedOrNull, getType, isMouseOver, isScrollbarVisible, isSelectButton, isSelectedEntry, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, position, position, refreshScroll, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setFocused, setRenderHeader, setScrollAmount, setScrollAmountOnly, setSelected, updateScrollingStateMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods 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
getNavigationFocus, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyReleasedMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition 
- 
Field Details
- 
DATE_FORMAT
- Mappings:
 Namespace Name Mixin selector named DATE_FORMATLnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/time/format/DateTimeFormatter;intermediary field_19132Lnet/minecraft/class_528;field_19132:Ljava/time/format/DateTimeFormatter;official aLfzk;a:Ljava/time/format/DateTimeFormatter;
 - 
ERROR_HIGHLIGHTED_TEXTURE
- Mappings:
 Namespace Name Mixin selector named ERROR_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45570Lnet/minecraft/class_528;field_45570:Lnet/minecraft/class_2960;official mLfzk;m:Lalz;
 - 
ERROR_TEXTURE
- Mappings:
 Namespace Name Mixin selector named ERROR_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45571Lnet/minecraft/class_528;field_45571:Lnet/minecraft/class_2960;official nLfzk;n:Lalz;
 - 
MARKED_JOIN_HIGHLIGHTED_TEXTURE
- Mappings:
 Namespace Name Mixin selector named MARKED_JOIN_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45572Lnet/minecraft/class_528;field_45572:Lnet/minecraft/class_2960;official oLfzk;o:Lalz;
 - 
MARKED_JOIN_TEXTURE
- Mappings:
 Namespace Name Mixin selector named MARKED_JOIN_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45573Lnet/minecraft/class_528;field_45573:Lnet/minecraft/class_2960;official pLfzk;p:Lalz;
 - 
WARNING_HIGHLIGHTED_TEXTURE
- Mappings:
 Namespace Name Mixin selector named WARNING_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45574Lnet/minecraft/class_528;field_45574:Lnet/minecraft/class_2960;official qLfzk;q:Lalz;
 - 
WARNING_TEXTURE
- Mappings:
 Namespace Name Mixin selector named WARNING_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45575Lnet/minecraft/class_528;field_45575:Lnet/minecraft/class_2960;official rLfzk;r:Lalz;
 - 
JOIN_HIGHLIGHTED_TEXTURE
- Mappings:
 Namespace Name Mixin selector named JOIN_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45576Lnet/minecraft/class_528;field_45576:Lnet/minecraft/class_2960;official sLfzk;s:Lalz;
 - 
JOIN_TEXTURE
- Mappings:
 Namespace Name Mixin selector named JOIN_TEXTURELnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45577Lnet/minecraft/class_528;field_45577:Lnet/minecraft/class_2960;official uLfzk;u:Lalz;
 - 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;intermediary field_3238Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;official vLfzk;v:Lorg/slf4j/Logger;
 - 
FROM_NEWER_VERSION_FIRST_LINE
- Mappings:
 Namespace Name Mixin selector named FROM_NEWER_VERSION_FIRST_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_FIRST_LINE:Lnet/minecraft/text/Text;intermediary field_26606Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;official wLfzk;w:Lxv;
 - 
FROM_NEWER_VERSION_SECOND_LINE
- Mappings:
 Namespace Name Mixin selector named FROM_NEWER_VERSION_SECOND_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;intermediary field_26607Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;official xLfzk;x:Lxv;
 - 
SNAPSHOT_FIRST_LINE
- Mappings:
 Namespace Name Mixin selector named SNAPSHOT_FIRST_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;intermediary field_26608Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;official yLfzk;y:Lxv;
 - 
SNAPSHOT_SECOND_LINE
- Mappings:
 Namespace Name Mixin selector named SNAPSHOT_SECOND_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;intermediary field_26609Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;official zLfzk;z:Lxv;
 - 
LOCKED_TEXT
- Mappings:
 Namespace Name Mixin selector named LOCKED_TEXTLnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;intermediary field_26610Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;official ALfzk;A:Lxv;
 - 
CONVERSION_TOOLTIP
- Mappings:
 Namespace Name Mixin selector named CONVERSION_TOOLTIPLnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;intermediary field_34803Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;official BLfzk;B:Lxv;
 - 
INCOMPATIBLE_TOOLTIP
- Mappings:
 Namespace Name Mixin selector named INCOMPATIBLE_TOOLTIPLnet/minecraft/client/gui/screen/world/WorldListWidget;INCOMPATIBLE_TOOLTIP:Lnet/minecraft/text/Text;intermediary field_46897Lnet/minecraft/class_528;field_46897:Lnet/minecraft/class_2561;official CLfzk;C:Lxv;
 - 
EXPERIMENTAL_TEXT
- Mappings:
 Namespace Name Mixin selector named EXPERIMENTAL_TEXTLnet/minecraft/client/gui/screen/world/WorldListWidget;EXPERIMENTAL_TEXT:Lnet/minecraft/text/Text;intermediary field_45569Lnet/minecraft/class_528;field_45569:Lnet/minecraft/class_2561;official DLfzk;D:Lxv;
 - 
parent
- Mappings:
 Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;intermediary field_3237Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;official ELfzk;E:Lfze;
 - 
levelsFuture
- Mappings:
 Namespace Name Mixin selector named levelsFutureLnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_39739Lnet/minecraft/class_528;field_39739:Ljava/util/concurrent/CompletableFuture;official FLfzk;F:Ljava/util/concurrent/CompletableFuture;
 - 
levels
- Mappings:
 Namespace Name Mixin selector named levelsLnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;intermediary field_39740Lnet/minecraft/class_528;field_39740:Ljava/util/List;official GLfzk;G:Ljava/util/List;
 - 
search
- Mappings:
 Namespace Name Mixin selector named searchLnet/minecraft/client/gui/screen/world/WorldListWidget;search:Ljava/lang/String;intermediary field_39738Lnet/minecraft/class_528;field_39738:Ljava/lang/String;official HLfzk;H:Ljava/lang/String;
 - 
loadingEntry
- Mappings:
 Namespace Name Mixin selector named loadingEntryLnet/minecraft/client/gui/screen/world/WorldListWidget;loadingEntry:Lnet/minecraft/client/gui/screen/world/WorldListWidget$LoadingEntry;intermediary field_38994Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;official ILfzk;I:Lfzk$b;
 
 - 
 - 
Constructor Details
- 
WorldListWidget
public WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int y, int itemHeight, String search, @Nullable @Nullable WorldListWidget oldWidget) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/WorldListWidget;<init>(Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;Lnet/minecraft/client/MinecraftClient;IIIILjava/lang/String;Lnet/minecraft/client/gui/screen/world/WorldListWidget;)Vintermediary <init>Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIILjava/lang/String;Lnet/minecraft/class_528;)Vofficial <init>Lfzk;<init>(Lfze;Lfmf;IIIILjava/lang/String;Lfzk;)V
 
 - 
 - 
Method Details
- 
clearEntries
protected void clearEntries()- Overrides:
 clearEntriesin classEntryListWidget<WorldListWidget.Entry>- Mappings:
 Namespace Name Mixin selector named clearEntriesLnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()Vintermediary method_25339Lnet/minecraft/class_350;method_25339()Vofficial jLfnz;j()V
 - 
tryGet
- Mappings:
 Namespace Name Mixin selector named tryGetLnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet()Ljava/util/List;intermediary method_44679Lnet/minecraft/class_528;method_44679()Ljava/util/List;official JLfzk;J()Ljava/util/List;
 - 
load
void load()- Mappings:
 Namespace Name Mixin selector named loadLnet/minecraft/client/gui/screen/world/WorldListWidget;load()Vintermediary method_44680Lnet/minecraft/class_528;method_44680()Vofficial KLfzk;K()V
 - 
keyPressed
public 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 theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- 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 named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfqc;a(III)Z
 - 
renderWidget
- Overrides:
 renderWidgetin classEntryListWidget<WorldListWidget.Entry>- Mappings:
 Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLfoc;b(Lfnr;IIF)V
 - 
show
- Mappings:
 Namespace Name Mixin selector named showLnet/minecraft/client/gui/screen/world/WorldListWidget;show(Ljava/util/List;)Vintermediary method_44678Lnet/minecraft/class_528;method_44678(Ljava/util/List;)Vofficial aLfzk;a(Ljava/util/List;)V
 - 
setSearch
- Mappings:
 Namespace Name Mixin selector named setSearchLnet/minecraft/client/gui/screen/world/WorldListWidget;setSearch(Ljava/lang/String;)Vintermediary method_44677Lnet/minecraft/class_528;method_44677(Ljava/lang/String;)Vofficial aLfzk;a(Ljava/lang/String;)V
 - 
loadLevels
- Mappings:
 Namespace Name Mixin selector named loadLevelsLnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;intermediary method_43462Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;official LLfzk;L()Ljava/util/concurrent/CompletableFuture;
 - 
showSummaries
- Mappings:
 Namespace Name Mixin selector named showSummariesLnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)Vintermediary method_43454Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)Vofficial aLfzk;a(Ljava/lang/String;Ljava/util/List;)V
 - 
shouldShow
- Mappings:
 Namespace Name Mixin selector named shouldShowLnet/minecraft/client/gui/screen/world/WorldListWidget;shouldShow(Ljava/lang/String;Lnet/minecraft/world/level/storage/LevelSummary;)Zintermediary method_43453Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Zofficial aLfzk;a(Ljava/lang/String;Lewd;)Z
 - 
showLoadingScreen
private void showLoadingScreen()- Mappings:
 Namespace Name Mixin selector named showLoadingScreenLnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()Vintermediary method_43463Lnet/minecraft/class_528;method_43463()Vofficial MLfzk;M()V
 - 
narrateScreenIfNarrationEnabled
private void narrateScreenIfNarrationEnabled()- Mappings:
 Namespace Name Mixin selector named narrateScreenIfNarrationEnabledLnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()Vintermediary method_43464Lnet/minecraft/class_528;method_43464()Vofficial NLfzk;N()V
 - 
showUnableToLoadScreen
- Mappings:
 Namespace Name Mixin selector named showUnableToLoadScreenLnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)Vintermediary method_43460Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)Vofficial cLfzk;c(Lxv;)V
 - 
getRowWidth
public int getRowWidth()- Overrides:
 getRowWidthin classEntryListWidget<WorldListWidget.Entry>- Mappings:
 Namespace Name Mixin selector named getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Iofficial aLfnz;a()I
 - 
setSelected
- Overrides:
 setSelectedin classEntryListWidget<WorldListWidget.Entry>- Mappings:
 Namespace Name Mixin selector named setSelectedLnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)Vintermediary method_20157Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)Vofficial aLfzk;a(Lfzk$a;)V
 - 
getSelectedAsOptional
- Mappings:
 Namespace Name Mixin selector named getSelectedAsOptionalLnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;intermediary method_20159Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;official bLfzk;b()Ljava/util/Optional;
 - 
getParent
- Mappings:
 Namespace Name Mixin selector named getParentLnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;intermediary method_2752Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;official cLfzk;c()Lfze;
 - 
appendClickableNarrations
- Overrides:
 appendClickableNarrationsin classAlwaysSelectedEntryListWidget<WorldListWidget.Entry>- Mappings:
 Namespace Name Mixin selector named appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLfoc;a(Lfsc;)V
 
 -