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 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
Modifier and TypeFieldDescriptionprivate List<WorldSummary>
private static final DateFormat
private static final ITextComponent
private static final ITextComponent
private static final ResourceLocation
private static final ResourceLocation
private static final org.apache.logging.log4j.Logger
private final WorldSelectionScreen
private static final ITextComponent
private static final ITextComponent
private static final ITextComponent
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionWorldSelectionList
(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 TypeMethodDescriptionint
protected int
protected boolean
protected void
moveSelection
(AbstractList.Ordering p_241219_1_) void
refreshList
(Supplier<String> p_212330_1_, boolean p_212330_2_) void
setSelected
(WorldSelectionList.Entry p_241215_1_) Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocus
Methods 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, updateSize
Methods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
Methods 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:
getScrollbarPosition
in classAbstractList<WorldSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classAbstractList<WorldSelectionList.Entry>
-
isFocused
protected boolean isFocused()- Overrides:
isFocused
in classAbstractList<WorldSelectionList.Entry>
-
setSelected
- Overrides:
setSelected
in classAbstractList<WorldSelectionList.Entry>
-
moveSelection
- Overrides:
moveSelection
in classAbstractList<WorldSelectionList.Entry>
-
getSelectedOpt
-
getScreen
-