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
public class WorldSelectionList extends ExtendedList<WorldSelectionList.Entry>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WorldSelectionList.Entry
-
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
Fields Modifier and Type Field Description private java.util.List<WorldSummary>
cachedList
private static java.text.DateFormat
DATE_FORMAT
private static ITextComponent
FROM_NEWER_TOOLTIP_1
private static ITextComponent
FROM_NEWER_TOOLTIP_2
private static ResourceLocation
ICON_MISSING
private static ResourceLocation
ICON_OVERLAY_LOCATION
private static org.apache.logging.log4j.Logger
LOGGER
private WorldSelectionScreen
screen
private static ITextComponent
SNAPSHOT_TOOLTIP_1
private static ITextComponent
SNAPSHOT_TOOLTIP_2
private static ITextComponent
WORLD_LOCKED_TOOLTIP
-
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
Constructors Constructor Description 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_, java.util.function.Supplier<java.lang.String> p_i49846_8_, WorldSelectionList p_i49846_9_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRowWidth()
WorldSelectionScreen
getScreen()
protected int
getScrollbarPosition()
java.util.Optional<WorldSelectionList.Entry>
getSelectedOpt()
protected boolean
isFocused()
protected void
moveSelection(AbstractList.Ordering p_241219_1_)
void
refreshList(java.util.function.Supplier<java.lang.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
DATE_FORMAT
private static final java.text.DateFormat DATE_FORMAT
-
ICON_MISSING
private static final ResourceLocation ICON_MISSING
-
ICON_OVERLAY_LOCATION
private static final ResourceLocation ICON_OVERLAY_LOCATION
-
FROM_NEWER_TOOLTIP_1
private static final ITextComponent FROM_NEWER_TOOLTIP_1
-
FROM_NEWER_TOOLTIP_2
private static final ITextComponent FROM_NEWER_TOOLTIP_2
-
SNAPSHOT_TOOLTIP_1
private static final ITextComponent SNAPSHOT_TOOLTIP_1
-
SNAPSHOT_TOOLTIP_2
private static final ITextComponent SNAPSHOT_TOOLTIP_2
-
WORLD_LOCKED_TOOLTIP
private static final ITextComponent WORLD_LOCKED_TOOLTIP
-
screen
private final WorldSelectionScreen screen
-
cachedList
@Nullable private java.util.List<WorldSummary> cachedList
-
-
Constructor Detail
-
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_, java.util.function.Supplier<java.lang.String> p_i49846_8_, @Nullable WorldSelectionList p_i49846_9_)
-
-
Method Detail
-
refreshList
public void refreshList(java.util.function.Supplier<java.lang.String> p_212330_1_, boolean p_212330_2_)
-
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
public void setSelected(@Nullable WorldSelectionList.Entry p_241215_1_)
- Overrides:
setSelected
in classAbstractList<WorldSelectionList.Entry>
-
moveSelection
protected void moveSelection(AbstractList.Ordering p_241219_1_)
- Overrides:
moveSelection
in classAbstractList<WorldSelectionList.Entry>
-
getSelectedOpt
public java.util.Optional<WorldSelectionList.Entry> getSelectedOpt()
-
getScreen
public WorldSelectionScreen getScreen()
-
-