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,ParentElement
@Environment(CLIENT) public class WorldListWidget extends AlwaysSelectedEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name official eauintermediary net/minecraft/class_528named net/minecraft/client/gui/screen/world/WorldListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWorldListWidget.EntryNested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection -
Field Summary
Fields Modifier and Type Field Description private static DateFormatDATE_FORMATprivate static TextFROM_NEWER_VERSION_FIRST_LINEprivate static TextFROM_NEWER_VERSION_SECOND_LINEprivate @Nullable List<LevelSummary>levelsprivate static TextLOCKED_TEXTprivate static LoggerLOGGERprivate SelectWorldScreenparentprivate static TextPRE_WORLDHEIGHT_TEXTprivate static TextSNAPSHOT_FIRST_LINEprivate static TextSNAPSHOT_SECOND_LINEprivate static IdentifierUNKNOWN_SERVER_LOCATIONprivate static IdentifierWORLD_SELECTION_LOCATIONFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, field_29346, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, @Nullable WorldListWidget list) -
Method Summary
Modifier and Type Method Description voidfilter(Supplier<String> supplier, boolean load)SelectWorldScreengetParent()intgetRowWidth()protected intgetScrollbarPositionX()Optional<WorldListWidget.Entry>getSelectedAsOptional()protected booleanisFocused()protected voidmoveSelection(EntryListWidget.MoveDirection direction)voidsetSelected(@Nullable WorldListWidget.Entry entry)Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedEntry, keyPressed, method_31322, method_31323, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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, keyReleased, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLeau;a:Lorg/apache/logging/log4j/Logger;intermediary field_3238Lnet/minecraft/class_528;field_3238:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official pLeau;p: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 qLeau;q:Lwl;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 rLeau;r:Lwl;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 sLeau;s:Loj;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 tLeau;t:Loj;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 uLeau;u:Loj;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 vLeau;v:Loj;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 wLeau;w:Loj;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;
-
PRE_WORLDHEIGHT_TEXT
- Mappings:
Namespace Name Mixin selector official xLeau;x:Loj;intermediary field_28857Lnet/minecraft/class_528;field_28857:Lnet/minecraft/class_2561;named PRE_WORLDHEIGHT_TEXTLnet/minecraft/client/gui/screen/world/WorldListWidget;PRE_WORLDHEIGHT_TEXT:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official yLeau;y:Lear;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;
-
levels
- Mappings:
Namespace Name Mixin selector official zLeau;z:Ljava/util/List;intermediary field_3239Lnet/minecraft/class_528;field_3239:Ljava/util/List;named levelsLnet/minecraft/client/gui/screen/world/WorldListWidget;levels:Ljava/util/List;
-
-
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 list)- Mappings:
Namespace Name Mixin selector official <init>Leau;<init>(Lear;Ldse;IIIIILjava/util/function/Supplier;Leau;)Vintermediary <init>Lnet/minecraft/class_528;<init>(Lnet/minecraft/class_526;Lnet/minecraft/class_310;IIIIILjava/util/function/Supplier;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/util/function/Supplier;Lnet/minecraft/client/gui/screen/world/WorldListWidget;)V
-
-
Method Details
-
filter
- Mappings:
Namespace Name Mixin selector official aLeau;a(Ljava/util/function/Supplier;Z)Vintermediary method_2750Lnet/minecraft/class_528;method_2750(Ljava/util/function/Supplier;Z)Vnamed filterLnet/minecraft/client/gui/screen/world/WorldListWidget;filter(Ljava/util/function/Supplier;Z)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official eLdtk;e()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 dLdtk;d()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official bLdtk;b()Zintermediary method_25316Lnet/minecraft/class_350;method_25316()Znamed isFocusedLnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-
setSelected
- Overrides:
setSelectedin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLeau;a(Leau$a;)Vintermediary method_20157Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_4272;)Vnamed setSelectedLnet/minecraft/client/gui/screen/world/WorldListWidget;setSelected(Lnet/minecraft/client/gui/screen/world/WorldListWidget$Entry;)V
-
moveSelection
- Overrides:
moveSelectionin classEntryListWidget<WorldListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdtk;a(Ldtk$b;)Vintermediary method_25335Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)Vnamed moveSelectionLnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
getSelectedAsOptional
- Mappings:
Namespace Name Mixin selector official fLeau;f()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 gLeau;g()Lear;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;
-