Class WorldSelectionList
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
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 classstatic enumstatic classstatic final classstatic final 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) final WorldSelectionList.EntryType(package private) static final ResourceLocation(package private) static final ResourceLocationprivate Stringprivate static final ResourceLocation(package private) static final Component(package private) static final Componentprivate boolean(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 ResourceLocation(package private) final Consumer<WorldSelectionList.WorldListEntry> private final Consumer<LevelSummary> private CompletableFuture<List<LevelSummary>> private final Screen(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, defaultEntryHeight, minecraftFields inherited from class net.minecraft.client.gui.components.AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionWorldSelectionList(Screen pScreen, Minecraft pMinecraft, int pWidth, int pHeight, String pFilter, WorldSelectionList pOldList, Consumer<LevelSummary> pOnEntrySelect, Consumer<WorldSelectionList.WorldListEntry> pOnEntryInteract, WorldSelectionList.EntryType pEntryType) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidfillLevels(String pFilter, List<LevelSummary> pLevels) private booleanfilterAccepts(String pFilter, LevelSummary pLevel) intprivate voidhandleLevelLoadFailure(Component pExceptionMessage) private voidhandleNewLevels(List<LevelSummary> pLevels) private CompletableFuture<List<LevelSummary>> private voidprivate List<LevelSummary> voidvoidrenderWidget(GuiGraphics p_313849_, int p_313762_, int p_313812_, float p_313854_) voidvoidsetSelected(WorldSelectionList.Entry p_233190_) voidupdateFilter(String pFilter) voidupdateWidgetNarration(NarrationElementOutput p_313871_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPathMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntry, addEntryToTop, addEntryToTop, centerScrollOn, children, clearEntriesExcept, contentHeight, enableScissor, entriesCanBeSelected, getChildAt, getEntryAtPosition, getFocused, getHovered, getItemCount, getNextY, getRowBottom, getRowLeft, getRowRight, getRowTop, getSelected, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, removeEntries, removeEntry, removeEntryFromTop, renderItem, renderListBackground, renderListItems, renderListSeparators, renderSelection, replaceEntries, scrollBarX, scrollRate, scrollToEntry, setFocused, setFocused, setScrollAmount, sort, swap, updateSize, updateSizeAndPosition, updateSizeAndPositionMethods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDraggingMethods inherited from class net.minecraft.client.gui.components.AbstractScrollArea
isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollAmount, scrollbarVisible, scrollBarY, scrollerHeight, updateScrollingMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, onClick, onDrag, playButtonClickSound, 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, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
getNarratablesMethods 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
-
FORGE_EXPERIMENTAL_WARNING_ICON
-
LOGGER
static final org.slf4j.Logger LOGGER -
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
-
loadingHeader
-
entryType
-
filter
-
hasPolled
private boolean hasPolled -
onEntrySelect
-
onEntryInteract
-
-
Constructor Details
-
WorldSelectionList
WorldSelectionList(Screen pScreen, Minecraft pMinecraft, int pWidth, int pHeight, String pFilter, @Nullable WorldSelectionList pOldList, @Nullable Consumer<LevelSummary> pOnEntrySelect, @Nullable Consumer<WorldSelectionList.WorldListEntry> pOnEntryInteract, WorldSelectionList.EntryType pEntryType)
-
-
Method Details
-
clearEntries
public void clearEntries()- Overrides:
clearEntriesin classAbstractSelectionList<WorldSelectionList.Entry>
-
pollLevelsIgnoreErrors
-
reloadWorldList
public void reloadWorldList() -
renderWidget
- Overrides:
renderWidgetin classAbstractSelectionList<WorldSelectionList.Entry>
-
handleNewLevels
-
updateFilter
-
loadLevels
-
fillLevels
-
filterAccepts
-
notifyListUpdated
private void notifyListUpdated() -
handleLevelLoadFailure
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<WorldSelectionList.Entry>
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<WorldSelectionList.Entry>
-
getSelectedOpt
-
returnToScreen
public void returnToScreen() -
getScreen
-
updateWidgetNarration
- Overrides:
updateWidgetNarrationin classObjectSelectionList<WorldSelectionList.Entry>
-