Class WorldSelectionList
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<WorldSelectionList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList<WorldSelectionList.Entry>
net.minecraft.client.gui.screens.worldselection.WorldSelectionList
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classfinal classNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<LevelSummary> static final DateTimeFormatter(package private) static final ResourceLocation(package private) static final ResourceLocationprivate Stringprivate static final ResourceLocation(package private) static final Component(package private) static final Component(package private) static final Component(package private) static final ResourceLocation(package private) static final ResourceLocationprivate final WorldSelectionList.LoadingHeader(package private) static final org.slf4j.Logger(package private) static final ResourceLocation(package private) static final ResourceLocationprivate CompletableFuture<List<LevelSummary>> private final SelectWorldScreen(package private) static final Component(package private) static final Component(package private) static final ResourceLocation(package private) static final ResourceLocation(package private) static final Component(package private) static final Component(package private) static final ComponentFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, itemHeight, minecraft, SCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionWorldSelectionList(SelectWorldScreen p_239540_, Minecraft p_239541_, int p_239542_, int p_239543_, int p_239544_, int p_239545_, String p_239547_, WorldSelectionList p_239548_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidfillLevels(String p_233199_, List<LevelSummary> p_233200_) private voidprivate booleanfilterAccepts(String p_233196_, LevelSummary p_233197_) intprivate voidhandleLevelLoadFailure(Component p_233212_) private voidhandleNewLevels(List<LevelSummary> p_239665_) booleankeyPressed(int p_289017_, int p_288966_, int p_289020_) private CompletableFuture<List<LevelSummary>> private voidprivate List<LevelSummary> (package private) voidvoidrenderWidget(GuiGraphics p_310403_, int p_312182_, int p_312151_, float p_311062_) voidsetSelected(WorldSelectionList.Entry p_233190_) voidupdateFilter(String p_239901_) voidupdateWidgetNarration(NarrationElementOutput p_313204_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPathMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clampScrollAmount, clickedHeader, enableScissor, ensureVisible, getDefaultScrollbarPosition, getEntry, getEntryAtPosition, getFirstElement, getFocused, getHovered, getItemCount, getMaxPosition, getMaxScroll, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollbarPosition, getSelected, isMouseOver, isSelectedItem, isValidMouseClick, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, renderDecorations, renderHeader, renderItem, renderListBackground, renderListItems, renderListSeparators, renderSelection, replaceEntries, scrollbarVisible, setClampedScrollAmount, setFocused, setRenderHeader, setScrollAmount, updateScrollingState, updateSize, updateSizeAndPositionMethods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, keyReleasedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, mouseMovedMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DATE_FORMAT
-
ERROR_HIGHLIGHTED_SPRITE
-
ERROR_SPRITE
-
MARKED_JOIN_HIGHLIGHTED_SPRITE
-
MARKED_JOIN_SPRITE
-
WARNING_HIGHLIGHTED_SPRITE
-
WARNING_SPRITE
-
JOIN_HIGHLIGHTED_SPRITE
-
JOIN_SPRITE
-
LOGGER
static final org.slf4j.Logger LOGGER -
FORGE_EXPERIMENTAL_WARNING_ICON
-
FROM_NEWER_TOOLTIP_1
-
FROM_NEWER_TOOLTIP_2
-
SNAPSHOT_TOOLTIP_1
-
SNAPSHOT_TOOLTIP_2
-
WORLD_LOCKED_TOOLTIP
-
WORLD_REQUIRES_CONVERSION
-
INCOMPATIBLE_VERSION_TOOLTIP
-
WORLD_EXPERIMENTAL
-
screen
-
pendingLevels
-
currentlyDisplayedLevels
-
filter
-
loadingHeader
-
-
Constructor Details
-
WorldSelectionList
public WorldSelectionList(SelectWorldScreen p_239540_, Minecraft p_239541_, int p_239542_, int p_239543_, int p_239544_, int p_239545_, String p_239547_, @Nullable WorldSelectionList p_239548_)
-
-
Method Details
-
clearEntries
protected void clearEntries()- Overrides:
clearEntriesin classAbstractSelectionList<WorldSelectionList.Entry>
-
pollLevelsIgnoreErrors
-
reloadWorldList
void reloadWorldList() -
keyPressed
public boolean keyPressed(int p_289017_, int p_288966_, int p_289020_) -
renderWidget
- Overrides:
renderWidgetin classAbstractSelectionList<WorldSelectionList.Entry>
-
handleNewLevels
-
updateFilter
-
loadLevels
-
fillLevels
-
filterAccepts
-
fillLoadingLevels
private void fillLoadingLevels() -
notifyListUpdated
private void notifyListUpdated() -
handleLevelLoadFailure
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<WorldSelectionList.Entry>
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<WorldSelectionList.Entry>
-
getSelectedOpt
-
getScreen
-
updateWidgetNarration
- Overrides:
updateWidgetNarrationin classObjectSelectionList<WorldSelectionList.Entry>
-