Class CustomServerSelectionList
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ObjectSelectionList<CustomServerSelectionList.Entry>
com.pixelmonmod.pixelmon.client.gui.override.servers.screen.CustomServerSelectionList
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.narration.NarratableEntry
,net.minecraft.client.gui.narration.NarrationSupplier
public class CustomServerSelectionList
extends net.minecraft.client.gui.components.ObjectSelectionList<CustomServerSelectionList.Entry>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, children, headerHeight, height, hovered, itemHeight, minecraft, renderBackground, renderHeader, scrollAmount, SCROLLBAR_WIDTH, SCROLLER_SPRITE, scrolling, selected, width, x0, x1, y0, y1
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionCustomServerSelectionList
(CustomMultiplayerScreen parent, net.minecraft.client.Minecraft minecraft, int p_99773_, int p_99774_, int p_99775_, int p_99776_, int p_99777_) -
Method Summary
Modifier and TypeMethodDescriptionprotected CustomServerSelectionList.Entry
getEntryAtPosition
(double p_93413_, double p_93414_) int
protected int
boolean
isMouseOver
(double p_93479_, double p_93480_) boolean
keyPressed
(int p_99782_, int p_99783_, int p_99784_) void
removed()
void
setSelected
(CustomServerSelectionList.Entry p_99790_) void
updateNetworkServers
(List<net.minecraft.client.server.LanServer> p_99800_) void
updateOnlineServers
(ExtendedServerList serverList) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, enableScissor, ensureVisible, getBottom, getEntry, getFirstElement, getFocused, getHeight, getHovered, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRectangle, getRight, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isSelectedItem, isValidMouseClick, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, render, renderDecorations, renderHeader, renderItem, renderList, renderSelection, replaceEntries, setFocused, setLeftPos, setRenderBackground, setRenderHeader, setScrollAmount, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
CustomServerSelectionList
public CustomServerSelectionList(CustomMultiplayerScreen parent, net.minecraft.client.Minecraft minecraft, int p_99773_, int p_99774_, int p_99775_, int p_99776_, int p_99777_)
-
-
Method Details
-
setSelected
- Overrides:
setSelected
in classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
keyPressed
public boolean keyPressed(int p_99782_, int p_99783_, int p_99784_) -
updateOnlineServers
-
updateNetworkServers
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPosition
in classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
removed
public void removed() -
getEntryAtPosition
@Nullable protected CustomServerSelectionList.Entry getEntryAtPosition(double p_93413_, double p_93414_) - Overrides:
getEntryAtPosition
in classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
isMouseOver
public boolean isMouseOver(double p_93479_, double p_93480_) - Specified by:
isMouseOver
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
isMouseOver
in classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-