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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Constructors
    Constructor
    Description
    CustomServerSelectionList(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 Type
    Method
    Description
    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
     
    void
     
    void
    updateNetworkServers(List<net.minecraft.client.server.LanServer> p_99800_)
     
    void
     

    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

      public void setSelected(@Nullable CustomServerSelectionList.Entry p_99790_)
      Overrides:
      setSelected in class net.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
    • keyPressed

      public boolean keyPressed(int p_99782_, int p_99783_, int p_99784_)
    • updateOnlineServers

      public void updateOnlineServers(ExtendedServerList serverList)
    • updateNetworkServers

      public void updateNetworkServers(List<net.minecraft.client.server.LanServer> p_99800_)
    • getScrollbarPosition

      protected int getScrollbarPosition()
      Overrides:
      getScrollbarPosition in class net.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
    • getRowWidth

      public int getRowWidth()
      Overrides:
      getRowWidth in class net.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 class net.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>
    • isMouseOver

      public boolean isMouseOver(double p_93479_, double p_93480_)
      Specified by:
      isMouseOver in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      isMouseOver in class net.minecraft.client.gui.components.AbstractSelectionList<CustomServerSelectionList.Entry>