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 gwr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classstatic classfinal classstatic enumNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ClickableWidget
ClickableWidget.InactivityIndicatingWidgetNested 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) voidvoidsetSelected(@Nullable WorldListWidget.Entry entry) private 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, isInScrollbar, mouseScrolled, onRelease, overflows, refreshScrollMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawTextWithMargin, forEachChild, getAlpha, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getWidth, getX, getY, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, method_76256, 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 aLgwr;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 fLgwr;f:Lamu;
-
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 nLgwr;n:Lamu;
-
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 oLgwr;o:Lamu;
-
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 pLgwr;p:Lamu;
-
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 qLgwr;q:Lamu;
-
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 rLgwr;r:Lamu;
-
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 sLgwr;s:Lamu;
-
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 tLgwr;t:Lamu;
-
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 uLgwr;u: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 vLgwr;v:Lyi;
-
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 wLgwr;w:Lyi;
-
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 xLgwr;x:Lyi;
-
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 yLgwr;y:Lyi;
-
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 zLgwr;z:Lyi;
-
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 ALgwr;A:Lyi;
-
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 BLgwr;B:Lyi;
-
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 CLgwr;C:Lyi;
-
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 DLgwr;D:Lgqj;
-
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 ELgwr;E: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 FLgwr;F: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 GLgwr;G:Lgwr$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 HLgwr;H:Lgwr$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 ILgwr;I: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 JLgwr;J: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 KLgwr;K: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 LLgwr;L:Ljava/util/function/Consumer;
-
-
Constructor Details
-
WorldListWidget
WorldListWidget(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) - 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>Lgwr;<init>(Lgqj;Lgds;IILjava/lang/String;Lgwr;Ljava/util/function/Consumer;Ljava/util/function/Consumer;Lgwr$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 sLghf;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 LLgwr;L()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 dLgwr;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 a_Lghj;a_(Lggy;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 bLgwr;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 aLgwr;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 MLgwr;M()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 aLgwr;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 aLgwr;a(Ljava/lang/String;Lflw;)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 NLgwr;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 cLgwr;c(Lyi;)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 aLghf;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 aLgwr;a(Lgwr$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 ILgwr;I()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 JLgwr;J()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 KLgwr;K()Lgqj;
-
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 aLghj;a(Lgnl;)V
-