Class WorldListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
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 gsr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classstatic classstatic final classstatic enumNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final @Nullable Consumer<WorldListWidget.WorldEntry> (package private) static final Textstatic final DateTimeFormatter(package private) static final Identifier(package private) static final Identifier(package private) static final Textprivate boolean(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 Screenprivate Stringprivate final @Nullable Consumer<LevelSummary> (package private) static final Text(package private) static final Text(package private) static final Identifier(package private) static final Identifier(package private) final WorldListWidget.WorldListTypeFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, itemHeightFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionWorldListWidget(Screen parent, MinecraftClient client, int width, int height, String search, @Nullable WorldListWidget predecessor, @Nullable Consumer<LevelSummary> selectionCallback, @Nullable Consumer<WorldListWidget.WorldEntry> confirmationCallback, WorldListWidget.WorldListType worldListType) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidintvoidload()private CompletableFuture<List<LevelSummary>> private voidvoidrefresh()voidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidvoidprivate booleanshouldShow(String search, LevelSummary summary) private voidshow(@Nullable List<LevelSummary> summaries) private 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, addEntry, addEntryToTop, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntriesExcept, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, getContentsHeightWithPadding, getDeltaYPerScroll, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollbarX, getSelectedOrNull, getType, getYOfNextEntry, hoveredElement, isEntrySelectionAllowed, position, position, position, removeEntries, removeEntry, removeEntryWithoutScrolling, renderEntry, renderList, replaceEntries, scrollTo, setFocused, setFocused, setScrollY, sort, swapEntriesOnPositionsMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDraggingMethods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, method_74038, mouseScrolled, onRelease, overflows, refreshScrollMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getWidth, getX, getY, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, onClick, onDrag, 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
getBorder, getNavigationFocus, isClickable, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods 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 aLgsr;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 lLgsr;l:Lamj;
-
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 mLgsr;m:Lamj;
-
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 nLgsr;n:Lamj;
-
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 oLgsr;o:Lamj;
-
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 pLgsr;p:Lamj;
-
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 qLgsr;q:Lamj;
-
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 rLgsr;r:Lamj;
-
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 sLgsr;s:Lamj;
-
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 tLgsr;t: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 uLgsr;u:Lxx;
-
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 vLgsr;v:Lxx;
-
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 wLgsr;w:Lxx;
-
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 xLgsr;x:Lxx;
-
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 yLgsr;y:Lxx;
-
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 zLgsr;z:Lxx;
-
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 ALgsr;A:Lxx;
-
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 BLgsr;B:Lxx;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/Screen;intermediary field_3237Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_437;official CLgsr;C:Lgmj;
-
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 DLgsr;D: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 ELgsr;E:Ljava/util/List;
-
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 FLgsr;F:Lgsr$d;
-
worldListType
- Mappings:
Namespace Name Mixin selector named worldListTypeLnet/minecraft/client/gui/screen/world/WorldListWidget;worldListType:Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldListType;intermediary field_62188Lnet/minecraft/class_528;field_62188:Lnet/minecraft/class_528$class_11781;official GLgsr;G:Lgsr$c;
-
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 HLgsr;H:Ljava/lang/String;
-
failedToGetLevels
private boolean failedToGetLevels- Mappings:
Namespace Name Mixin selector named failedToGetLevelsLnet/minecraft/client/gui/screen/world/WorldListWidget;failedToGetLevels:Zintermediary field_62189Lnet/minecraft/class_528;field_62189:Zofficial ILgsr;I:Z
-
selectionCallback
- Mappings:
Namespace Name Mixin selector named selectionCallbackLnet/minecraft/client/gui/screen/world/WorldListWidget;selectionCallback:Ljava/util/function/Consumer;intermediary field_62190Lnet/minecraft/class_528;field_62190:Ljava/util/function/Consumer;official JLgsr;J:Ljava/util/function/Consumer;
-
confirmationCallback
- Mappings:
Namespace Name Mixin selector named confirmationCallbackLnet/minecraft/client/gui/screen/world/WorldListWidget;confirmationCallback:Ljava/util/function/Consumer;intermediary field_62191Lnet/minecraft/class_528;field_62191:Ljava/util/function/Consumer;official KLgsr;K:Ljava/util/function/Consumer;
-
-
Constructor Details
-
WorldListWidget
WorldListWidget(Screen parent, MinecraftClient client, int width, int height, String search, @Nullable @Nullable WorldListWidget predecessor, @Nullable @Nullable Consumer<LevelSummary> selectionCallback, @Nullable @Nullable Consumer<WorldListWidget.WorldEntry> confirmationCallback, WorldListWidget.WorldListType worldListType) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/WorldListWidget;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;IILjava/lang/String;Lnet/minecraft/client/gui/screen/world/WorldListWidget;Ljava/util/function/Consumer;Ljava/util/function/Consumer;Lnet/minecraft/client/gui/screen/world/WorldListWidget$WorldListType;)Vintermediary <init>Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_310;IILjava/lang/String;Lnet/minecraft/class_528;Ljava/util/function/Consumer;Ljava/util/function/Consumer;Lnet/minecraft/class_528$class_11781;)Vofficial <init>Lgsr;<init>(Lgmj;Lfzz;IILjava/lang/String;Lgsr;Ljava/util/function/Consumer;Ljava/util/function/Consumer;Lgsr$c;)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 sLgdj;s()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 KLgsr;K()Ljava/util/List;
-
load
public 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 dLgsr;d()V
-
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 bLgdn;b(Lgdd;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 bLgsr;b(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 aLgsr;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 LLgsr;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 aLgsr;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 aLgsr;a(Ljava/lang/String;Lfii;)Z
-
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 MLgsr;M()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 cLgsr;c(Lxx;)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 aLgdj;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 aLgsr;a(Lgsr$b;)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 HLgsr;H()Ljava/util/Optional;
-
refresh
public void refresh()- Mappings:
Namespace Name Mixin selector named refreshLnet/minecraft/client/gui/screen/world/WorldListWidget;refresh()Vintermediary method_73451Lnet/minecraft/class_528;method_73451()Vofficial ILgsr;I()V
-
getParent
- Mappings:
Namespace Name Mixin selector named getParentLnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/Screen;intermediary method_2752Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_437;official JLgsr;J()Lgmj;
-
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 aLgdn;a(Lgjl;)V
-