public class WorldSelectionList extends ExtendedList<WorldSelectionList.Entry>
Modifier and Type | Class and Description |
---|---|
class |
WorldSelectionList.Entry |
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>
Modifier and Type | Field and Description |
---|---|
private java.util.List<WorldSummary> |
field_212331_y |
private static java.text.DateFormat |
field_214377_b |
private static ResourceLocation |
field_214378_c |
private static ResourceLocation |
field_214379_d |
private static org.apache.logging.log4j.Logger |
LOGGER |
private WorldSelectionScreen |
worldSelection |
centerListVertically, DRAG_OUTSIDE, headerHeight, height, itemHeight, minecraft, renderHeader, renderSelection, width, x0, x1, y0, y1, yDrag
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and 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_) |
Modifier and Type | Method and Description |
---|---|
void |
func_212330_a(java.util.function.Supplier<java.lang.String> p_212330_1_,
boolean p_212330_2_) |
java.util.Optional<WorldSelectionList.Entry> |
func_214376_a() |
WorldSelectionScreen |
getGuiWorldSelection() |
int |
getRowWidth() |
protected int |
getScrollbarPosition() |
protected boolean |
isFocused() |
protected void |
moveSelection(int p_moveSelection_1_) |
void |
setSelected(WorldSelectionList.Entry p_setSelected_1_) |
changeFocus
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getItemCount, getLeft, getMaxPosition, getRight, getRowLeft, getRowTop, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderHoleBackground, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, updateScrollingState, updateSize
isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, func_212932_b, getEventListenerForPos, keyReleased, setFocusedDefault
mouseMoved
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.text.DateFormat field_214377_b
private static final ResourceLocation field_214378_c
private static final ResourceLocation field_214379_d
private final WorldSelectionScreen worldSelection
@Nullable private java.util.List<WorldSummary> field_212331_y
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_)
public void func_212330_a(java.util.function.Supplier<java.lang.String> p_212330_1_, boolean p_212330_2_)
protected int getScrollbarPosition()
getScrollbarPosition
in class AbstractList<WorldSelectionList.Entry>
public int getRowWidth()
getRowWidth
in class AbstractList<WorldSelectionList.Entry>
protected boolean isFocused()
isFocused
in class AbstractList<WorldSelectionList.Entry>
public void setSelected(@Nullable WorldSelectionList.Entry p_setSelected_1_)
setSelected
in class AbstractList<WorldSelectionList.Entry>
protected void moveSelection(int p_moveSelection_1_)
moveSelection
in class AbstractList<WorldSelectionList.Entry>
public java.util.Optional<WorldSelectionList.Entry> func_214376_a()
public WorldSelectionScreen getGuiWorldSelection()