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 gdq
-
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, headerHeight, itemHeightFields inherited from class net.minecraft.client.gui.widget.ScrollableWidget
SCROLLBAR_WIDTHFields 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 deltaTicks) 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, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, ensureVisible, getContentsHeightWithPadding, getDeltaYPerScroll, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollbarX, getSelectedOrNull, getType, hoveredElement, isSelectedEntry, position, position, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setFocused, setSelectedMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
checkScrollbarDragged, drawScrollbar, getMaxScrollY, getScrollbarThumbHeight, getScrollbarThumbY, getScrollY, mouseScrolled, onRelease, overflows, refreshScroll, setScrollYMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isMouseOver, isNarratable, 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, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, 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 aLgdq;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 mLgdq;m:Lalg;
-
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 nLgdq;n:Lalg;
-
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 oLgdq;o:Lalg;
-
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 pLgdq;p:Lalg;
-
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 qLgdq;q:Lalg;
-
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 rLgdq;r:Lalg;
-
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 sLgdq;s:Lalg;
-
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 uLgdq;u:Lalg;
-
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 vLgdq;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 wLgdq;w:Lwy;
-
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 xLgdq;x:Lwy;
-
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 yLgdq;y:Lwy;
-
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 zLgdq;z:Lwy;
-
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 ALgdq;A:Lwy;
-
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 BLgdq;B:Lwy;
-
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 CLgdq;C:Lwy;
-
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 DLgdq;D:Lwy;
-
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 ELgdq;E:Lgdk;
-
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 FLgdq;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 GLgdq;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 HLgdq;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 ILgdq;I:Lgdq$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>Lgdq;<init>(Lgdk;Lfoz;IIIILjava/lang/String;Lgdq;)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 sLfsd;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 MLgdq;M()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 NLgdq;N()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 aLfug;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 bLfsh;b(Lfrv;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 aLgdq;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 aLgdq;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 OLgdq;O()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 aLgdq;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 aLgdq;a(Ljava/lang/String;Leyw;)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 PLgdq;P()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 QLgdq;Q()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 cLgdq;c(Lwy;)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 aLfsd;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 aLgdq;a(Lgdq$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 bLgdq;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 cLgdq;c()Lgdk;
-
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 aLfsh;a(Lfwg;)V
-