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 dza
intermediary net/minecraft/class_528
named net/minecraft/client/gui/screen/world/WorldListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WorldListWidget.Entry
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection
-
Field Summary
Fields Modifier and Type Field Description private static DateFormat
DATE_FORMAT
private static Text
FROM_NEWER_VERSION_ONE_TOOLTIP
private static Text
FROM_NEWER_VERSION_TWO_TOOLTIP
private List<LevelSummary>
levels
private static Text
LOCKED_TEXT
private static Logger
LOGGER
private SelectWorldScreen
parent
private static Text
SNAPSHOT_ONE_TOOLTIP
private static Text
SNAPSHOT_TWO_TOOLTIP
private static Identifier
UNKNOWN_SERVER_LOCATION
private static Identifier
WORLD_SELECTION_LOCATION
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
-
Constructor Summary
Constructors Constructor Description WorldListWidget(SelectWorldScreen parent, MinecraftClient client, int width, int height, int top, int bottom, int itemHeight, Supplier<String> searchFilter, WorldListWidget list)
-
Method Summary
Modifier and Type Method Description void
filter(Supplier<String> supplier, boolean load)
SelectWorldScreen
getParent()
int
getRowWidth()
protected int
getScrollbarPositionX()
protected boolean
isFocused()
Optional<WorldListWidget.Entry>
method_20159()
protected void
moveSelection(EntryListWidget.MoveDirection direction)
void
setSelected(WorldListWidget.Entry entry)
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderHeader, 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
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldza;a:Lorg/apache/logging/log4j/Logger;
intermediary field_3238
Lnet/minecraft/class_528;field_3238:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/screen/world/WorldListWidget;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official o
Ldza;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
Ldza;p:Lwb;
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
Ldza;q:Lwb;
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_ONE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official r
Ldza;r:Loi;
intermediary field_26606
Lnet/minecraft/class_528;field_26606:Lnet/minecraft/class_2561;
named FROM_NEWER_VERSION_ONE_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_ONE_TOOLTIP:Lnet/minecraft/text/Text;
-
FROM_NEWER_VERSION_TWO_TOOLTIP
- Mappings:
Namespace Name Mixin selector official s
Ldza;s:Loi;
intermediary field_26607
Lnet/minecraft/class_528;field_26607:Lnet/minecraft/class_2561;
named FROM_NEWER_VERSION_TWO_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;FROM_NEWER_VERSION_TWO_TOOLTIP:Lnet/minecraft/text/Text;
-
SNAPSHOT_ONE_TOOLTIP
- Mappings:
Namespace Name Mixin selector official t
Ldza;t:Loi;
intermediary field_26608
Lnet/minecraft/class_528;field_26608:Lnet/minecraft/class_2561;
named SNAPSHOT_ONE_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_ONE_TOOLTIP:Lnet/minecraft/text/Text;
-
SNAPSHOT_TWO_TOOLTIP
- Mappings:
Namespace Name Mixin selector official u
Ldza;u:Loi;
intermediary field_26609
Lnet/minecraft/class_528;field_26609:Lnet/minecraft/class_2561;
named SNAPSHOT_TWO_TOOLTIP
Lnet/minecraft/client/gui/screen/world/WorldListWidget;SNAPSHOT_TWO_TOOLTIP:Lnet/minecraft/text/Text;
-
LOCKED_TEXT
- Mappings:
Namespace Name Mixin selector official v
Ldza;v:Loi;
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;
-
parent
- Mappings:
Namespace Name Mixin selector official w
Ldza;w:Ldyx;
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;
-
levels
- Mappings:
Namespace Name Mixin selector official x
Ldza;x:Ljava/util/List;
intermediary field_3239
Lnet/minecraft/class_528;field_3239:Ljava/util/List;
named levels
Lnet/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 WorldListWidget list)- Mappings:
Namespace Name Mixin selector official <init>
Ldza;<init>(Ldyx;Ldqk;IIIIILjava/util/function/Supplier;Ldza;)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
-
filter
- Mappings:
Namespace Name Mixin selector official a
Ldza;a(Ljava/util/function/Supplier;Z)V
intermediary method_2750
Lnet/minecraft/class_528;method_2750(Ljava/util/function/Supplier;Z)V
named filter
Lnet/minecraft/client/gui/screen/world/WorldListWidget;filter(Ljava/util/function/Supplier;Z)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<WorldListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official e
Ldrq;e()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 d
Ldrq;d()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 b
Ldrq;b()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
Ldza;a(Ldza$a;)V
intermediary method_20157
Lnet/minecraft/class_528;method_20157(Lnet/minecraft/class_528$class_4272;)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
Ldrq;a(Ldrq$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
-
method_20159
- Mappings:
Namespace Name Mixin selector official f
Ldza;f()Ljava/util/Optional;
intermediary method_20159
Lnet/minecraft/class_528;method_20159()Ljava/util/Optional;
named method_20159
Lnet/minecraft/client/gui/screen/world/WorldListWidget;method_20159()Ljava/util/Optional;
-
getParent
- Mappings:
Namespace Name Mixin selector official g
Ldza;g()Ldyx;
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;
-