public class GuiListWorldSelection extends GuiListExtended
GuiListExtended.IGuiListEntry
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 p_i46590_3_,
int p_i46590_4_,
int p_i46590_5_,
int p_i46590_6_,
int p_i46590_7_) |
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, updateItemPos
actionPerformed, bindAmountScrolled, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEnabled, getMaxScroll, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, renderDecorations, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft
public GuiListWorldSelection(GuiWorldSelection p_i46590_1_, Minecraft clientIn, int p_i46590_3_, int p_i46590_4_, int p_i46590_5_, int p_i46590_6_, int p_i46590_7_)
public void refreshList()
public GuiListWorldSelectionEntry getListEntry(int index)
getListEntry
in class GuiListExtended
protected int getScrollBarX()
getScrollBarX
in class GuiSlot
public int getListWidth()
getListWidth
in class GuiSlot
public void selectWorld(int idx)
protected boolean isSelected(int slotIndex)
isSelected
in class GuiListExtended
@Nullable public GuiListWorldSelectionEntry getSelectedWorld()
public GuiWorldSelection getGuiWorldSelection()