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.WorldListEntry>
net.minecraft.client.gui.screens.worldselection.WorldSelectionList
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Widget,NarratableEntry,NarrationSupplier
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.components.ObjectSelectionList
ObjectSelectionList.Entry<E extends ObjectSelectionList.Entry<E>>Nested 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 static final ResourceLocation(package private) static final Component(package private) static final Component(package private) static final ResourceLocation(package private) static final ResourceLocation(package private) static final org.slf4j.Loggerprivate 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_101658_, Minecraft p_101659_, int p_101660_, int p_101661_, int p_101662_, int p_101663_, int p_101664_, Supplier<String> p_101665_, WorldSelectionList p_101666_) -
Method Summary
Modifier and TypeMethodDescriptionintprotected intprotected booleanprotected voidvoidrefreshList(Supplier<String> p_101677_, boolean p_101678_) voidsetSelected(WorldSelectionList.WorldListEntry p_101675_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, 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, render, renderBackground, renderDecorations, renderHeader, renderList, 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, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, 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
-
cachedList
-
-
Constructor Details
-
WorldSelectionList
public WorldSelectionList(SelectWorldScreen p_101658_, Minecraft p_101659_, int p_101660_, int p_101661_, int p_101662_, int p_101663_, int p_101664_, Supplier<String> p_101665_, @Nullable WorldSelectionList p_101666_)
-
-
Method Details
-
refreshList
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classAbstractSelectionList<WorldSelectionList.WorldListEntry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<WorldSelectionList.WorldListEntry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classAbstractSelectionList<WorldSelectionList.WorldListEntry>
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<WorldSelectionList.WorldListEntry>
-
moveSelection
- Overrides:
moveSelectionin classAbstractSelectionList<WorldSelectionList.WorldListEntry>
-
getSelectedOpt
-
getScreen
-