Package net.minecraft.client.gui.screen
Class WorldSelectionList
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.widget.list.AbstractList<E>
net.minecraft.client.gui.widget.list.ExtendedList<WorldSelectionList.Entry>
net.minecraft.client.gui.screen.WorldSelectionList
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.ExtendedList
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.AbstractList
AbstractList.Ordering -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<WorldSummary>private static final DateFormatprivate static final ITextComponentprivate static final ITextComponentprivate static final ResourceLocationprivate static final ResourceLocationprivate static final org.apache.logging.log4j.Loggerprivate final WorldSelectionScreenprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentFields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionWorldSelectionList(WorldSelectionScreen p_i49846_1_, Minecraft p_i49846_2_, int p_i49846_3_, int p_i49846_4_, int p_i49846_5_, int p_i49846_6_, int p_i49846_7_, Supplier<String> p_i49846_8_, WorldSelectionList p_i49846_9_) -
Method Summary
Modifier and TypeMethodDescriptionintprotected intprotected booleanprotected voidmoveSelection(AbstractList.Ordering p_241219_1_) voidrefreshList(Supplier<String> p_212330_1_, boolean p_212330_2_) voidsetSelected(WorldSelectionList.Entry p_241215_1_) Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocusMethods inherited from class net.minecraft.client.gui.widget.list.AbstractList
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, refreshSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DATE_FORMAT
-
ICON_MISSING
-
ICON_OVERLAY_LOCATION
-
FROM_NEWER_TOOLTIP_1
-
FROM_NEWER_TOOLTIP_2
-
SNAPSHOT_TOOLTIP_1
-
SNAPSHOT_TOOLTIP_2
-
WORLD_LOCKED_TOOLTIP
-
screen
-
cachedList
-
-
Constructor Details
-
WorldSelectionList
public WorldSelectionList(WorldSelectionScreen p_i49846_1_, Minecraft p_i49846_2_, int p_i49846_3_, int p_i49846_4_, int p_i49846_5_, int p_i49846_6_, int p_i49846_7_, Supplier<String> p_i49846_8_, @Nullable WorldSelectionList p_i49846_9_)
-
-
Method Details
-
refreshList
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classAbstractList<WorldSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractList<WorldSelectionList.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classAbstractList<WorldSelectionList.Entry>
-
setSelected
- Overrides:
setSelectedin classAbstractList<WorldSelectionList.Entry>
-
moveSelection
- Overrides:
moveSelectionin classAbstractList<WorldSelectionList.Entry>
-
getSelectedOpt
-
getScreen
-