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/WorldListWidget
intermediary net/minecraft/class_528
official fth
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
final class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Text
static 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 Identifier
private @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 Identifier
private final SelectWorldScreen
private String
(package private) static final Text
(package private) static final Text
(package private) static final Identifier
(package private) static final Identifier
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeight
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
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 y, int itemHeight, String search, @Nullable WorldListWidget oldWidget) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
int
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.(package private) void
load()
private CompletableFuture
<List<LevelSummary>> private void
void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) void
void
private boolean
shouldShow
(String search, LevelSummary summary) private void
show
(@Nullable List<LevelSummary> levels) private void
private void
showSummaries
(String search, List<LevelSummary> summaries) private void
showUnableToLoadScreen
(Text message) private @Nullable List
<LevelSummary> tryGet()
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
getNavigationPath
Methods 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, updateScrollingState
Methods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocused
Methods 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, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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
getNavigationFocus, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyReleased
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector named DATE_FORMAT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;DATE_FORMAT:Ljava/time/format/DateTimeFormatter;
intermediary field_19132
Lnet/minecraft/class_528;field_19132:Ljava/time/format/DateTimeFormatter;
official a
Lfth;a:Ljava/time/format/DateTimeFormatter;
-
ERROR_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named ERROR_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45570
Lnet/minecraft/class_528;field_45570:Lnet/minecraft/class_2960;
official m
Lfth;m:Lakq;
-
ERROR_TEXTURE
- Mappings:
Namespace Name Mixin selector named ERROR_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;ERROR_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45571
Lnet/minecraft/class_528;field_45571:Lnet/minecraft/class_2960;
official n
Lfth;n:Lakq;
-
MARKED_JOIN_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named MARKED_JOIN_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45572
Lnet/minecraft/class_528;field_45572:Lnet/minecraft/class_2960;
official o
Lfth;o:Lakq;
-
MARKED_JOIN_TEXTURE
- Mappings:
Namespace Name Mixin selector named MARKED_JOIN_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;MARKED_JOIN_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45573
Lnet/minecraft/class_528;field_45573:Lnet/minecraft/class_2960;
official p
Lfth;p:Lakq;
-
WARNING_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named WARNING_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45574
Lnet/minecraft/class_528;field_45574:Lnet/minecraft/class_2960;
official q
Lfth;q:Lakq;
-
WARNING_TEXTURE
- Mappings:
Namespace Name Mixin selector named WARNING_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;WARNING_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45575
Lnet/minecraft/class_528;field_45575:Lnet/minecraft/class_2960;
official r
Lfth;r:Lakq;
-
JOIN_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named JOIN_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45576
Lnet/minecraft/class_528;field_45576:Lnet/minecraft/class_2960;
official s
Lfth;s:Lakq;
-
JOIN_TEXTURE
- Mappings:
Namespace Name Mixin selector named JOIN_TEXTURE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;JOIN_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45577
Lnet/minecraft/class_528;field_45577:Lnet/minecraft/class_2960;
official u
Lfth;u:Lakq;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/slf4j/Logger;
intermediary field_3238
Lnet/minecraft/class_528;field_3238:Lorg/slf4j/Logger;
official v
Lfth;v:Lorg/slf4j/Logger;
-
FROM_NEWER_VERSION_FIRST_LINE
- Mappings:
Namespace Name Mixin selector named FROM_NEWER_VERSION_FIRST_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_FIRST_LINE:Lnet/minecraft/text/Text;
intermediary field_26606
Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;
official w
Lfth;w:Lwy;
-
FROM_NEWER_VERSION_SECOND_LINE
- Mappings:
Namespace Name Mixin selector named FROM_NEWER_VERSION_SECOND_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_SECOND_LINE:Lnet/minecraft/text/Text;
intermediary field_26607
Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;
official x
Lfth;x:Lwy;
-
SNAPSHOT_FIRST_LINE
- Mappings:
Namespace Name Mixin selector named SNAPSHOT_FIRST_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_FIRST_LINE:Lnet/minecraft/text/Text;
intermediary field_26608
Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;
official y
Lfth;y:Lwy;
-
SNAPSHOT_SECOND_LINE
- Mappings:
Namespace Name Mixin selector named SNAPSHOT_SECOND_LINE
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_SECOND_LINE:Lnet/minecraft/text/Text;
intermediary field_26609
Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;
official z
Lfth;z:Lwy;
-
LOCKED_TEXT
- Mappings:
Namespace Name Mixin selector named LOCKED_TEXT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOCKED_TEXT:Lnet/minecraft/text/Text;
intermediary field_26610
Lnet/minecraft/class_528;field_26610:Lnet/minecraft/class_2561;
official A
Lfth;A:Lwy;
-
CONVERSION_TOOLTIP
- Mappings:
Namespace Name Mixin selector named CONVERSION_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;CONVERSION_TOOLTIP:Lnet/minecraft/text/Text;
intermediary field_34803
Lnet/minecraft/class_528;field_34803:Lnet/minecraft/class_2561;
official B
Lfth;B:Lwy;
-
INCOMPATIBLE_TOOLTIP
- Mappings:
Namespace Name Mixin selector named INCOMPATIBLE_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;INCOMPATIBLE_TOOLTIP:Lnet/minecraft/text/Text;
intermediary field_46897
Lnet/minecraft/class_528;field_46897:Lnet/minecraft/class_2561;
official C
Lfth;C:Lwy;
-
EXPERIMENTAL_TEXT
- Mappings:
Namespace Name Mixin selector named EXPERIMENTAL_TEXT
Lnet/minecraft/client/gui/screen/world/WorldListWidget;EXPERIMENTAL_TEXT:Lnet/minecraft/text/Text;
intermediary field_45569
Lnet/minecraft/class_528;field_45569:Lnet/minecraft/class_2561;
official D
Lfth;D:Lwy;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/gui/screen/world/WorldListWidget;parent:Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
intermediary field_3237
Lnet/minecraft/class_528;field_3237:Lnet/minecraft/class_526;
official E
Lfth;E:Lftc;
-
levelsFuture
- Mappings:
Namespace Name Mixin selector named levelsFuture
Lnet/minecraft/client/gui/screen/world/WorldListWidget;levelsFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_39739
Lnet/minecraft/class_528;field_39739:Ljava/util/concurrent/CompletableFuture;
official F
Lfth;F:Ljava/util/concurrent/CompletableFuture;
-
levels
- Mappings:
Namespace Name Mixin selector named levels
Lnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;
intermediary field_39740
Lnet/minecraft/class_528;field_39740:Ljava/util/List;
official G
Lfth;G:Ljava/util/List;
-
search
- Mappings:
Namespace Name Mixin selector named search
Lnet/minecraft/client/gui/screen/world/WorldListWidget;search:Ljava/lang/String;
intermediary field_39738
Lnet/minecraft/class_528;field_39738:Ljava/lang/String;
official H
Lfth;H:Ljava/lang/String;
-
loadingEntry
- Mappings:
Namespace Name Mixin selector named loadingEntry
Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadingEntry:Lnet/minecraft/client/gui/screen/world/WorldListWidget$LoadingEntry;
intermediary field_38994
Lnet/minecraft/class_528;field_38994:Lnet/minecraft/class_528$class_7415;
official I
Lfth;I:Lfth$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;)V
intermediary <init>
Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIILjava/lang/String;Lnet/minecraft/class_528;)V
official <init>
Lfth;<init>(Lftc;Lfgi;IIIILjava/lang/String;Lfth;)V
-
-
Method Details
-
clearEntries
protected void clearEntries()- Overrides:
clearEntries
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector named clearEntries
Lnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
intermediary method_25339
Lnet/minecraft/class_350;method_25339()V
official k
Lfib;k()V
-
tryGet
- Mappings:
Namespace Name Mixin selector named tryGet
Lnet/minecraft/client/gui/screen/world/WorldListWidget;tryGet()Ljava/util/List;
intermediary method_44679
Lnet/minecraft/class_528;method_44679()Ljava/util/List;
official K
Lfth;K()Ljava/util/List;
-
load
void load()- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/client/gui/screen/world/WorldListWidget;load()V
intermediary method_44680
Lnet/minecraft/class_528;method_44680()V
official L
Lfth;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 inGLFW
class.- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfkc;a(III)Z
-
renderWidget
- Overrides:
renderWidget
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfie;b(Lfht;IIF)V
-
show
- Mappings:
Namespace Name Mixin selector named show
Lnet/minecraft/client/gui/screen/world/WorldListWidget;show(Ljava/util/List;)V
intermediary method_44678
Lnet/minecraft/class_528;method_44678(Ljava/util/List;)V
official a
Lfth;a(Ljava/util/List;)V
-
setSearch
- Mappings:
Namespace Name Mixin selector named setSearch
Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSearch(Ljava/lang/String;)V
intermediary method_44677
Lnet/minecraft/class_528;method_44677(Ljava/lang/String;)V
official a
Lfth;a(Ljava/lang/String;)V
-
loadLevels
- Mappings:
Namespace Name Mixin selector named loadLevels
Lnet/minecraft/client/gui/screen/world/WorldListWidget;loadLevels()Ljava/util/concurrent/CompletableFuture;
intermediary method_43462
Lnet/minecraft/class_528;method_43462()Ljava/util/concurrent/CompletableFuture;
official M
Lfth;M()Ljava/util/concurrent/CompletableFuture;
-
showSummaries
- Mappings:
Namespace Name Mixin selector named showSummaries
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showSummaries(Ljava/lang/String;Ljava/util/List;)V
intermediary method_43454
Lnet/minecraft/class_528;method_43454(Ljava/lang/String;Ljava/util/List;)V
official a
Lfth;a(Ljava/lang/String;Ljava/util/List;)V
-
shouldShow
- Mappings:
Namespace Name Mixin selector named shouldShow
Lnet/minecraft/client/gui/screen/world/WorldListWidget;shouldShow(Ljava/lang/String;Lnet/minecraft/world/level/storage/LevelSummary;)Z
intermediary method_43453
Lnet/minecraft/class_528;method_43453(Ljava/lang/String;Lnet/minecraft/class_34;)Z
official a
Lfth;a(Ljava/lang/String;Lera;)Z
-
showLoadingScreen
private void showLoadingScreen()- Mappings:
Namespace Name Mixin selector named showLoadingScreen
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showLoadingScreen()V
intermediary method_43463
Lnet/minecraft/class_528;method_43463()V
official N
Lfth;N()V
-
narrateScreenIfNarrationEnabled
private void narrateScreenIfNarrationEnabled()- Mappings:
Namespace Name Mixin selector named narrateScreenIfNarrationEnabled
Lnet/minecraft/client/gui/screen/world/WorldListWidget;narrateScreenIfNarrationEnabled()V
intermediary method_43464
Lnet/minecraft/class_528;method_43464()V
official O
Lfth;O()V
-
showUnableToLoadScreen
- Mappings:
Namespace Name Mixin selector named showUnableToLoadScreen
Lnet/minecraft/client/gui/screen/world/WorldListWidget;showUnableToLoadScreen(Lnet/minecraft/text/Text;)V
intermediary method_43460
Lnet/minecraft/class_528;method_43460(Lnet/minecraft/class_2561;)V
official c
Lfth;c(Lwy;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
official b
Lfib;b()I
-
setSelected
- Overrides:
setSelected
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector named setSelected
Lnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
intermediary method_20157
Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_7414;)V
official a
Lfth;a(Lfth$a;)V
-
getSelectedAsOptional
- Mappings:
Namespace Name Mixin selector named getSelectedAsOptional
Lnet/minecraft/client/gui/screen/world/WorldListWidget;getSelectedAsOptional()Ljava/util/Optional;
intermediary method_20159
Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;
official c
Lfth;c()Ljava/util/Optional;
-
getParent
- Mappings:
Namespace Name Mixin selector named getParent
Lnet/minecraft/client/gui/screen/world/WorldListWidget;getParent()Lnet/minecraft/client/gui/screen/world/SelectWorldScreen;
intermediary method_2752
Lnet/minecraft/class_528;method_2752()Lnet/minecraft/class_526;
official J
Lfth;J()Lftc;
-
appendClickableNarrations
- Overrides:
appendClickableNarrations
in classAlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfie;a(Lfmc;)V
-