Class WorldListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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,ParentElement,Selectable
@Environment(CLIENT)
public class WorldListWidget
extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name official euqintermediary net/minecraft/class_528named net/minecraft/client/gui/screen/world/WorldListWidget
-
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 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 Text(package private) static final Identifier(package private) static final IdentifierFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionWorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, String search, @Nullable WorldListWidget oldWidget) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendNarrations(NarrationMessageBuilder builder) intprotected int(package private) voidload()private CompletableFuture<List<LevelSummary>>private voidvoidrender(MatrixStack matrices, 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
method_48205Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, method_35721, method_48197, method_48198, method_48199, method_48200, method_48202, 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.AbstractParentElement
isDragging, setDraggingMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffsetMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, isFocused, keyPressed, keyReleased, method_48218, setFocusedMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeuq;a:Lorg/slf4j/Logger;intermediary field_3238Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official oLeuq;o:Ljava/text/DateFormat;intermediary field_19132Lnet/minecraft/class_528;field_19132:Ljava/text/DateFormat;named DATE_FORMATLnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/text/DateFormat;
-
UNKNOWN_SERVER_LOCATION
- Mappings:
Namespace Name Mixin selector official pLeuq;p:Lacm;intermediary field_19133Lnet/minecraft/class_528;field_19133:Lnet/minecraft/class_2960;named UNKNOWN_SERVER_LOCATIONLnet/minecraft/client/gui/screen/world/WorldListWidget;UNKNOWN_SERVER_LOCATION:Lnet/minecraft/util/Identifier;
-
WORLD_SELECTION_LOCATION
- Mappings:
Namespace Name Mixin selector official qLeuq;q:Lacm;intermediary field_19134Lnet/minecraft/class_528;field_19134:Lnet/minecraft/class_2960;named WORLD_SELECTION_LOCATIONLnet/minecraft/client/gui/screen/world/WorldListWidget;WORLD_SELECTION_LOCATION:Lnet/minecraft/util/Identifier;
-
FROM_NEWER_VERSION_FIRST_LINE
- Mappings:
Namespace Name Mixin selector official rLeuq;r:Lsu;intermediary field_26606Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;named FROM_NEWER_VERSION_FIRST_LINELnet/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 sLeuq;s:Lsu;intermediary field_26607Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;named FROM_NEWER_VERSION_SECOND_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;
-
SNAPSHOT_FIRST_LINE
- Mappings:
Namespace Name Mixin selector official tLeuq;t:Lsu;intermediary field_26608Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;named SNAPSHOT_FIRST_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;
-
SNAPSHOT_SECOND_LINE
- Mappings:
Namespace Name Mixin selector official uLeuq;u:Lsu;intermediary field_26609Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;named SNAPSHOT_SECOND_LINELnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;
-
LOCKED_TEXT
- Mappings:
Namespace Name Mixin selector official vLeuq;v:Lsu;intermediary field_26610Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;named LOCKED_TEXTLnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;
-
CONVERSION_TOOLTIP
- Mappings:
Namespace Name Mixin selector official wLeuq;w:Lsu;intermediary field_34803Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;named CONVERSION_TOOLTIPLnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official xLeuq;x:Leum;intermediary field_3237Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;named parentLnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
-
levelsFuture
- Mappings:
Namespace Name Mixin selector official yLeuq;y:Ljava/util/concurrent/CompletableFuture;intermediary field_39739Lnet/minecraft/class_528;field_39739:Ljava/util/concurrent/CompletableFuture;named levelsFutureLnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;
-
levels
- Mappings:
Namespace Name Mixin selector official zLeuq;z:Ljava/util/List;intermediary field_39740Lnet/minecraft/class_528;field_39740:Ljava/util/List;named levelsLnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;
-
search
- Mappings:
Namespace Name Mixin selector official ALeuq;A:Ljava/lang/String;intermediary field_39738Lnet/minecraft/class_528;field_39738:Ljava/lang/String;named searchLnet/minecraft/client/gui/screen/world/WorldListWidget;search:Ljava/lang/String;
-
loadingEntry
- Mappings:
Namespace Name Mixin selector official BLeuq;B:Leuq$b;intermediary field_38994Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;named loadingEntryLnet/minecraft/client/gui/screen/world/WorldListWidget;loadingEntry:Lnet/minecraft/client/gui/screen/world/WorldListWidget$LoadingEntry;
-
-
Constructor Details
-
WorldListWidget
public 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>Leuq;<init>(Leum;Lejt;IIIIILjava/lang/String;Leuq;)Vintermediary <init>Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIIILjava/lang/String;Lnet/minecraft/class_528;)Vnamed <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
-
tryGet
- Mappings:
Namespace Name Mixin selector official wLeuq;w()Ljava/util/List;intermediary method_44679Lnet/minecraft/class_528;method_44679()Ljava/util/List;named tryGetLnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet()Ljava/util/List;
-
load
void load()- Mappings:
Namespace Name Mixin selector official xLeuq;x()Vintermediary method_44680Lnet/minecraft/class_528;method_44680()Vnamed loadLnet/minecraft/client/gui/screen/world/WorldListWidget;load()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLemj;a(Leer;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
show
- Mappings:
Namespace Name Mixin selector official aLeuq;a(Ljava/util/List;)Vintermediary method_44678Lnet/minecraft/class_528;method_44678(Ljava/util/List;)Vnamed showLnet/minecraft/client/gui/screen/world/WorldListWidget;show(Ljava/util/List;)V
-
setSearch
- Mappings:
Namespace Name Mixin selector official aLeuq;a(Ljava/lang/String;)Vintermediary method_44677Lnet/minecraft/class_528;method_44677(Ljava/lang/String;)Vnamed setSearchLnet/minecraft/client/gui/screen/world/WorldListWidget;setSearch(Ljava/lang/String;)V
-
loadLevels
- Mappings:
Namespace Name Mixin selector official yLeuq;y()Ljava/util/concurrent/CompletableFuture;intermediary method_43462Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;named loadLevelsLnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;
-
showSummaries
- Mappings:
Namespace Name Mixin selector official aLeuq;a(Ljava/lang/String;Ljava/util/List;)Vintermediary method_43454Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)Vnamed showSummariesLnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)V
-
shouldShow
- Mappings:
Namespace Name Mixin selector official aLeuq;a(Ljava/lang/String;Ldvt;)Zintermediary method_43453Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Znamed shouldShowLnet/minecraft/client/gui/screen/world/WorldListWidget;shouldShow(Ljava/lang/String;Lnet/minecraft/world/level/storage/LevelSummary;)Z
-
showLoadingScreen
private void showLoadingScreen()- Mappings:
Namespace Name Mixin selector official zLeuq;z()Vintermediary method_43463Lnet/minecraft/class_528;method_43463()Vnamed showLoadingScreenLnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()V
-
narrateScreenIfNarrationEnabled
private void narrateScreenIfNarrationEnabled()- Mappings:
Namespace Name Mixin selector official ALeuq;A()Vintermediary method_43464Lnet/minecraft/class_528;method_43464()Vnamed narrateScreenIfNarrationEnabledLnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()V
-
showUnableToLoadScreen
- Mappings:
Namespace Name Mixin selector official aLeuq;a(Lsu;)Vintermediary method_43460Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)Vnamed showUnableToLoadScreenLnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official cLelh;c()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official bLelh;b()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
setSelected
- Overrides:
setSelectedin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLeuq;a(Leuq$a;)Vintermediary method_20157Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)Vnamed setSelectedLnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
-
getSelectedAsOptional
- Mappings:
Namespace Name Mixin selector official dLeuq;d()Ljava/util/Optional;intermediary method_20159Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;named getSelectedAsOptionalLnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;
-
getParent
- Mappings:
Namespace Name Mixin selector official eLeuq;e()Leum;intermediary method_2752Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;named getParentLnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
-
appendNarrations
- Specified by:
appendNarrationsin interfaceNarratable- Overrides:
appendNarrationsin classAlwaysSelectedEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official bLeod;b(Leoc;)Vintermediary method_37020Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)Vnamed appendNarrationsLnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-