public class ServerSelectionList extends GuiListExtended
GuiListExtended.IGuiListEntry| Modifier and Type | Field and Description |
|---|---|
private GuiListExtended.IGuiListEntry |
lanScanEntry |
private GuiMultiplayer |
owner |
private int |
selectedSlotIndex |
private java.util.List<ServerListEntryNormal> |
serverListInternet |
private java.util.List<ServerListEntryLanDetected> |
serverListLan |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, width| Constructor and Description |
|---|
ServerSelectionList(GuiMultiplayer ownerIn,
Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn) |
| Modifier and Type | Method and Description |
|---|---|
GuiListExtended.IGuiListEntry |
getListEntry(int index) |
int |
getListWidth() |
protected int |
getScrollBarX() |
int |
getSelected() |
protected int |
getSize() |
protected boolean |
isSelected(int slotIndex) |
void |
setSelectedSlotIndex(int selectedSlotIndexIn) |
void |
updateNetworkServers(java.util.List<LanServerInfo> p_148194_1_) |
void |
updateOnlineServers(ServerList p_148195_1_) |
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 final GuiMultiplayer owner
private final java.util.List<ServerListEntryNormal> serverListInternet
private final java.util.List<ServerListEntryLanDetected> serverListLan
private final GuiListExtended.IGuiListEntry lanScanEntry
private int selectedSlotIndex
public ServerSelectionList(GuiMultiplayer ownerIn, Minecraft mcIn, int widthIn, int heightIn, int topIn, int bottomIn, int slotHeightIn)
public GuiListExtended.IGuiListEntry getListEntry(int index)
getListEntry in class GuiListExtendedpublic void setSelectedSlotIndex(int selectedSlotIndexIn)
protected boolean isSelected(int slotIndex)
isSelected in class GuiListExtendedpublic int getSelected()
public void updateOnlineServers(ServerList p_148195_1_)
public void updateNetworkServers(java.util.List<LanServerInfo> p_148194_1_)
protected int getScrollBarX()
getScrollBarX in class GuiSlotpublic int getListWidth()
getListWidth in class GuiSlot