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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classclassNested 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, y1Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionCustomServerSelectionList(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.EntrygetEntryAtPosition(double p_93413_, double p_93414_) intprotected intbooleanisMouseOver(double p_93479_, double p_93480_) booleankeyPressed(int p_99782_, int p_99783_, int p_99784_) voidremoved()voidsetSelected(CustomServerSelectionList.Entry p_99790_) voidupdateNetworkServers(List<net.minecraft.client.server.LanServer> p_99800_) voidupdateOnlineServers(ExtendedServerList serverList) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateNarrationMethods 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, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDraggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActiveMethods 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:
setSelectedin 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:
getScrollbarPositionin classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin 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:
getEntryAtPositionin classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-
isMouseOver
public boolean isMouseOver(double p_93479_, double p_93480_) - Specified by:
isMouseOverin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
isMouseOverin classnet.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
-