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 eol
intermediary net/minecraft/class_528
named net/minecraft/client/gui/screen/world/WorldListWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
final class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Text
(package private) static final DateFormat
(package private) static final Text
(package private) static final Text
private @Nullable CompletableFuture<List<LevelSummary>>
private final WorldListWidget.LoadingEntry
(package private) static final Text
(package private) static final org.slf4j.Logger
private final SelectWorldScreen
(package private) static final Text
(package private) static final Text
private static final Duration
(package private) static final Identifier
(package private) static final Identifier
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionWorldListWidget
(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, @Nullable WorldListWidget oldWidget) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendNarrations
(NarrationMessageBuilder builder) void
int
protected int
protected boolean
void
loadAndShow
(Supplier<String> searchFilter) private CompletableFuture<List<LevelSummary>>
protected void
moveSelection
(EntryListWidget.MoveDirection direction) private void
void
private boolean
shouldShow
(String search, LevelSummary summary) private void
private void
showSummaries
(String search, List<LevelSummary> summaries) private void
showUnableToLoadScreen
(Text message) private @Nullable List<LevelSummary>
tryGet
(CompletableFuture<List<LevelSummary>> future, Duration timeout) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, keyPressed, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setScrollAmount, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official a
Leol;a:Lorg/slf4j/Logger;
intermediary field_3238
Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official o
Leol;o:Ljava/text/DateFormat;
intermediary field_19132
Lnet/minecraft/class_528;field_19132:Ljava/text/DateFormat;
named DATE_FORMAT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/text/DateFormat;
-
UNKNOWN_SERVER_LOCATION
- Mappings:
Namespace Name Mixin selector official p
Leol;p:Laaj;
intermediary field_19133
Lnet/minecraft/class_528;field_19133:Lnet/minecraft/class_2960;
named UNKNOWN_SERVER_LOCATION
Lnet/minecraft/client/gui/screen/world/WorldListWidget;UNKNOWN_SERVER_LOCATION:Lnet/minecraft/util/Identifier;
-
WORLD_SELECTION_LOCATION
- Mappings:
Namespace Name Mixin selector official q
Leol;q:Laaj;
intermediary field_19134
Lnet/minecraft/class_528;field_19134:Lnet/minecraft/class_2960;
named WORLD_SELECTION_LOCATION
Lnet/minecraft/client/gui/screen/world/WorldListWidget;WORLD_SELECTION_LOCATION:Lnet/minecraft/util/Identifier;
-
FROM_NEWER_VERSION_FIRST_LINE
- Mappings:
Namespace Name Mixin selector official r
Leol;r:Lrm;
intermediary field_26606
Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;
named FROM_NEWER_VERSION_FIRST_LINE
Lnet/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 s
Leol;s:Lrm;
intermediary field_26607
Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;
named FROM_NEWER_VERSION_SECOND_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;
-
SNAPSHOT_FIRST_LINE
- Mappings:
Namespace Name Mixin selector official t
Leol;t:Lrm;
intermediary field_26608
Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;
named SNAPSHOT_FIRST_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;
-
SNAPSHOT_SECOND_LINE
- Mappings:
Namespace Name Mixin selector official u
Leol;u:Lrm;
intermediary field_26609
Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;
named SNAPSHOT_SECOND_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;
-
LOCKED_TEXT
- Mappings:
Namespace Name Mixin selector official v
Leol;v:Lrm;
intermediary field_26610
Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;
named LOCKED_TEXT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;
-
CONVERSION_TOOLTIP
- Mappings:
Namespace Name Mixin selector official w
Leol;w:Lrm;
intermediary field_34803
Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;
named CONVERSION_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;
-
TIMEOUT
- Mappings:
Namespace Name Mixin selector official x
Leol;x:Ljava/time/Duration;
intermediary field_38995
Lnet/minecraft/class_528;field_38995:Ljava/time/Duration;
named TIMEOUT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;TIMEOUT:Ljava/time/Duration;
-
parent
- Mappings:
Namespace Name Mixin selector official y
Leol;y:Leoh;
intermediary field_3237
Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;
named parent
Lnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
-
levelsFuture
- Mappings:
Namespace Name Mixin selector official z
Leol;z:Ljava/util/concurrent/CompletableFuture;
intermediary field_38996
Lnet/minecraft/class_528;field_38996:Ljava/util/concurrent/CompletableFuture;
named levelsFuture
Lnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;
-
loadingEntry
- Mappings:
Namespace Name Mixin selector official A
Leol;A:Leol$b;
intermediary field_38994
Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;
named loadingEntry
Lnet/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, Supplier<String> searchFilter, @Nullable @Nullable WorldListWidget oldWidget) - Mappings:
Namespace Name Mixin selector official <init>
Leol;<init>(Leoh;Leev;IIIIILjava/util/function/Supplier;Leol;)V
intermediary <init>
Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIIILjava/util/function/Supplier;Lnet/minecraft/class_528;)V
named <init>
Lnet/minecraft/client/gui/screen/world/WorldListWidget;<init>(Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;Lnet/minecraft/client/MinecraftClient;IIIIILjava/util/function/Supplier;Lnet/minecraft/client/gui/screen/world/WorldListWidget;)V
-
-
Method Details
-
loadAndShow
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Ljava/util/function/Supplier;)V
intermediary method_43458
Lnet/minecraft/class_528;method_43458(Ljava/util/function/Supplier;)V
named loadAndShow
Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadAndShow(Ljava/util/function/Supplier;)V
-
filter
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Ljava/lang/String;)V
intermediary method_2750
Lnet/minecraft/class_528;method_2750(Ljava/lang/String;)V
named filter
Lnet/minecraft/client/gui/screen/world/WorldListWidget;filter(Ljava/lang/String;)V
-
loadLevels
- Mappings:
Namespace Name Mixin selector official v
Leol;v()Ljava/util/concurrent/CompletableFuture;
intermediary method_43462
Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;
named loadLevels
Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;
-
tryGet
@Nullable private @Nullable List<LevelSummary> tryGet(CompletableFuture<List<LevelSummary>> future, Duration timeout) - Mappings:
Namespace Name Mixin selector official a
Leol;a(Ljava/util/concurrent/CompletableFuture;Ljava/time/Duration;)Ljava/util/List;
intermediary method_43457
Lnet/minecraft/class_528;method_43457(Ljava/util/concurrent/CompletableFuture;Ljava/time/Duration;)Ljava/util/List;
named tryGet
Lnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet(Ljava/util/concurrent/CompletableFuture;Ljava/time/Duration;)Ljava/util/List;
-
showSummaries
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Ljava/lang/String;Ljava/util/List;)V
intermediary method_43454
Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)V
named showSummaries
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)V
-
shouldShow
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Ljava/lang/String;Ldqu;)Z
intermediary method_43453
Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Z
named shouldShow
Lnet/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 w
Leol;w()V
intermediary method_43463
Lnet/minecraft/class_528;method_43463()V
named showLoadingScreen
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()V
-
narrateScreenIfNarrationEnabled
private void narrateScreenIfNarrationEnabled()- Mappings:
Namespace Name Mixin selector official x
Leol;x()V
intermediary method_43464
Lnet/minecraft/class_528;method_43464()V
named narrateScreenIfNarrationEnabled
Lnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()V
-
showUnableToLoadScreen
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Lrm;)V
intermediary method_43460
Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)V
named showUnableToLoadScreen
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official d
Lego;d()I
intermediary method_25329
Lnet/minecraft/class_350;method_25329()I
named getScrollbarPositionX
Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official c
Lego;c()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
isFocused
protected boolean isFocused()- Overrides:
isFocused
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Lego;a()Z
intermediary method_25316
Lnet/minecraft/class_350;method_25316()Z
named isFocused
Lnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-
setSelected
- Overrides:
setSelected
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Leol;a(Leol$a;)V
intermediary method_20157
Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)V
named setSelected
Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
-
moveSelection
- Overrides:
moveSelection
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Lego;a(Lego$b;)V
intermediary method_25335
Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)V
named moveSelection
Lnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
getSelectedAsOptional
- Mappings:
Namespace Name Mixin selector official e
Leol;e()Ljava/util/Optional;
intermediary method_20159
Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;
named getSelectedAsOptional
Lnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;
-
getParent
- Mappings:
Namespace Name Mixin selector official f
Leol;f()Leoh;
intermediary method_2752
Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;
named getParent
Lnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
-
appendNarrations
- Specified by:
appendNarrations
in interfaceNarratable
- Overrides:
appendNarrations
in classAlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Leiv;a(Leiu;)V
intermediary method_37020
Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
named appendNarrations
Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-