Class WorldListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
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 fvp
-
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, field_45909, headerHeight, itemHeightFields 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 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
getNavigationPathMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clickedHeader, drawHeaderAndFooterSeparators, drawMenuListBackground, drawSelectionHighlight, enableScissor, ensureVisible, getDefaultScrollbarX, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollbarX, getSelectedOrNull, getType, isMouseOver, isScrollbarVisible, isSelectButton, isSelectedEntry, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, position, position, refreshScroll, remove, removeEntry, removeEntryWithoutScrolling, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setFocused, setRenderHeader, setScrollAmount, setScrollAmountOnly, updateScrollingStateMethods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, 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
getNavigationFocus, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyReleasedMethods 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 aLfvp;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 mLfvp;m:Lale;
-
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 nLfvp;n:Lale;
-
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 oLfvp;o:Lale;
-
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 pLfvp;p:Lale;
-
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 qLfvp;q:Lale;
-
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 rLfvp;r:Lale;
-
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 sLfvp;s:Lale;
-
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 uLfvp;u:Lale;
-
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 vLfvp;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 wLfvp;w:Lxe;
-
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 xLfvp;x:Lxe;
-
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 yLfvp;y:Lxe;
-
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 zLfvp;z:Lxe;
-
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 ALfvp;A:Lxe;
-
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 BLfvp;B:Lxe;
-
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 CLfvp;C:Lxe;
-
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 DLfvp;D:Lxe;
-
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 ELfvp;E:Lfvk;
-
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 FLfvp;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 GLfvp;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 HLfvp;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 ILfvp;I:Lfvp$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>Lfvp;<init>(Lfvk;Lfip;IIIILjava/lang/String;Lfvp;)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 kLfkj;k()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 KLfvp;K()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 LLfvp;L()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 aLfml;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 bLfkm;b(Lfkb;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 aLfvp;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 aLfvp;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 MLfvp;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 aLfvp;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 aLfvp;a(Ljava/lang/String;Leta;)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 NLfvp;N()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 OLfvp;O()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 cLfvp;c(Lxe;)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 bLfkj;b()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 aLfvp;a(Lfvp$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 cLfvp;c()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 JLfvp;J()Lfvk;
-
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 aLfkm;a(Lfol;)V
-