public class GuiListWorldSelection extends GuiListExtended
GuiListExtended.IGuiListEntry| Modifier and Type | Field and Description |
|---|---|
private java.util.List<GuiListWorldSelectionEntry> |
entries |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
selectedIdx |
private GuiWorldSelection |
worldSelection |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, width| Constructor and Description |
|---|
GuiListWorldSelection(GuiWorldSelection p_i46590_1_,
Minecraft clientIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn) |
| Modifier and Type | Method and Description |
|---|---|
GuiWorldSelection |
getGuiWorldSelection() |
GuiListWorldSelectionEntry |
getListEntry(int index) |
int |
getListWidth() |
protected int |
getScrollBarX() |
GuiListWorldSelectionEntry |
getSelectedWorld() |
protected int |
getSize() |
protected boolean |
isSelected(int slotIndex) |
void |
refreshList() |
void |
selectWorld(int idx) |
drawBackground, drawSlot, elementClicked, mouseClicked, mouseReleased, updateItemPosactionPerformed, bindAmountScrolled, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEnabled, getMaxScroll, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, renderDecorations, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeftprivate static final org.apache.logging.log4j.Logger LOGGER
private final GuiWorldSelection worldSelection
private final java.util.List<GuiListWorldSelectionEntry> entries
private int selectedIdx
public GuiListWorldSelection(GuiWorldSelection p_i46590_1_, Minecraft clientIn, int widthIn, int heightIn, int topIn, int bottomIn, int slotHeightIn)
public void refreshList()
public GuiListWorldSelectionEntry getListEntry(int index)
getListEntry in class GuiListExtendedprotected int getScrollBarX()
getScrollBarX in class GuiSlotpublic int getListWidth()
getListWidth in class GuiSlotpublic void selectWorld(int idx)
protected boolean isSelected(int slotIndex)
isSelected in class GuiListExtended@Nullable public GuiListWorldSelectionEntry getSelectedWorld()
public GuiWorldSelection getGuiWorldSelection()