public class CustomServerSelectionList extends net.minecraft.client.gui.widget.list.ExtendedList<CustomServerSelectionList.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
CustomServerSelectionList.Entry |
static class |
CustomServerSelectionList.LanDetectedEntry |
static class |
CustomServerSelectionList.LanScanEntry |
class |
CustomServerSelectionList.NormalEntry |
class |
CustomServerSelectionList.ScrollEntry |
Constructor and Description |
---|
CustomServerSelectionList(CustomMultiplayerScreen p_i45049_1_,
net.minecraft.client.Minecraft p_i45049_2_,
int p_i45049_3_,
int p_i45049_4_,
int p_i45049_5_,
int p_i45049_6_,
int p_i45049_7_) |
Modifier and Type | Method and Description |
---|---|
protected int |
addEntry(CustomServerSelectionList.Entry p_230513_1_) |
protected CustomServerSelectionList.Entry |
entryAtPosition(double p_230933_1_,
double p_230933_3_) |
int |
getRowWidth() |
protected int |
getScrollbarPosition() |
CustomServerSelectionList.Entry |
getSelected() |
protected boolean |
isFocused() |
boolean |
keyPressed(int p_231046_1_,
int p_231046_2_,
int p_231046_3_) |
boolean |
mouseClicked(double p_231044_1_,
double p_231044_3_,
int p_231044_5_) |
protected void |
moveSelection(net.minecraft.client.gui.widget.list.AbstractList.Ordering p_241219_1_) |
void |
setSelected(CustomServerSelectionList.Entry selected) |
void |
updateNetworkServers(java.util.List<net.minecraft.client.network.LanServerInfo> p_148194_1_) |
void |
updateOnlineServers(CustomServerList p_148195_1_) |
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getTop, getWidth, isMouseOver, isSelectedItem, mouseDragged, mouseReleased, mouseScrolled, moveSelection, refreshSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSize
isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CustomServerSelectionList(CustomMultiplayerScreen p_i45049_1_, net.minecraft.client.Minecraft p_i45049_2_, int p_i45049_3_, int p_i45049_4_, int p_i45049_5_, int p_i45049_6_, int p_i45049_7_)
protected int addEntry(CustomServerSelectionList.Entry p_230513_1_)
addEntry
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public void setSelected(@Nullable CustomServerSelectionList.Entry selected)
setSelected
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public CustomServerSelectionList.Entry getSelected()
getSelected
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
protected void moveSelection(net.minecraft.client.gui.widget.list.AbstractList.Ordering p_241219_1_)
moveSelection
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public void updateOnlineServers(CustomServerList p_148195_1_)
public void updateNetworkServers(java.util.List<net.minecraft.client.network.LanServerInfo> p_148194_1_)
protected int getScrollbarPosition()
getScrollbarPosition
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public int getRowWidth()
getRowWidth
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
protected boolean isFocused()
isFocused
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class net.minecraft.client.gui.widget.list.AbstractList<CustomServerSelectionList.Entry>
protected CustomServerSelectionList.Entry entryAtPosition(double p_230933_1_, double p_230933_3_)