Class WorldSelectionList
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ObjectSelectionList<WorldSelectionList.Entry>
net.minecraft.client.gui.screens.worldselection.WorldSelectionList
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Widget,NarratableEntry,NarrationSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classfinal classNested classes/interfaces inherited from class net.minecraft.client.gui.components.AbstractSelectionList
AbstractSelectionList.SelectionDirectionNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<LevelSummary>(package private) static final DateFormatprivate Stringprivate static final ResourceLocation(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.Loggerprivate CompletableFuture<List<LevelSummary>>private final SelectWorldScreen(package private) static final Component(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, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields 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_, int p_239546_, String p_239547_, WorldSelectionList p_239548_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidfillLevels(String p_233199_, List<LevelSummary> p_233200_) private voidprivate booleanfilterAccepts(String p_233196_, LevelSummary p_233197_) intprotected intprivate voidhandleLevelLoadFailure(Component p_233212_) private voidhandleNewLevels(List<LevelSummary> p_239665_) protected booleanprivate CompletableFuture<List<LevelSummary>>protected voidprivate voidprivate List<LevelSummary>(package private) voidvoidvoidsetSelected(WorldSelectionList.Entry p_233190_) voidupdateFilter(String p_239901_) voidupdateNarration(NarrationElementOutput p_233188_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocusMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getHovered, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, narrateListElementPosition, narrationPriority, refreshSelection, remove, removeEntry, removeEntryFromTop, renderBackground, renderDecorations, renderHeader, renderItem, renderList, renderSelection, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods 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, keyReleased, magicalSpecialHackyFocus, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
DATE_FORMAT
-
ICON_MISSING
-
ICON_OVERLAY_LOCATION
-
FORGE_EXPERIMENTAL_WARNING_ICON
-
FROM_NEWER_TOOLTIP_1
-
FROM_NEWER_TOOLTIP_2
-
SNAPSHOT_TOOLTIP_1
-
SNAPSHOT_TOOLTIP_2
-
WORLD_LOCKED_TOOLTIP
-
WORLD_REQUIRES_CONVERSION
-
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_, int p_239546_, String p_239547_, @Nullable WorldSelectionList p_239548_)
-
-
Method Details
-
pollLevelsIgnoreErrors
-
reloadWorldList
void reloadWorldList() -
render
- Specified by:
renderin interfaceWidget- Overrides:
renderin classAbstractSelectionList<WorldSelectionList.Entry>
-
handleNewLevels
-
updateFilter
-
loadLevels
-
fillLevels
-
filterAccepts
-
fillLoadingLevels
private void fillLoadingLevels() -
notifyListUpdated
private void notifyListUpdated() -
handleLevelLoadFailure
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classAbstractSelectionList<WorldSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<WorldSelectionList.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classAbstractSelectionList<WorldSelectionList.Entry>
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<WorldSelectionList.Entry>
-
moveSelection
- Overrides:
moveSelectionin classAbstractSelectionList<WorldSelectionList.Entry>
-
getSelectedOpt
-
getScreen
-
updateNarration
- Specified by:
updateNarrationin interfaceNarrationSupplier- Overrides:
updateNarrationin classObjectSelectionList<WorldSelectionList.Entry>
-