public class GuiListWorldSelection extends GuiListExtended
GuiListExtended.IGuiListEntryamountScrolled, 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)
Gets the IGuiListEntry object for the given index
|
int |
getListWidth()
Gets the width of the list
|
protected int |
getScrollBarX() |
GuiListWorldSelectionEntry |
getSelectedWorld() |
protected int |
getSize() |
protected boolean |
isSelected(int slotIndex)
Returns true if the element passed in is currently selected
|
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, setSlotXBoundsFromLeftpublic 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 GuiListExtendedpublic GuiListWorldSelectionEntry getSelectedWorld()
public GuiWorldSelection getGuiWorldSelection()