Class ServerSelectionList.NetworkServerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<ServerSelectionList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ServerSelectionList.Entry>
net.minecraft.client.gui.screens.multiplayer.ServerSelectionList.Entry
net.minecraft.client.gui.screens.multiplayer.ServerSelectionList.NetworkServerEntry
- All Implemented Interfaces:
AutoCloseable, GuiEventListener, TabOrderedElement, LayoutElement, NarrationSupplier
- Enclosing class:
ServerSelectionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final intprivate static final Componentprotected final Minecraftprivate final JoinMultiplayerScreenprotected final LanServerFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetworkServerEntry(JoinMultiplayerScreen screen, LanServer serverData) -
Method Summary
Modifier and TypeMethodDescriptionvoidjoin()booleankeyPressed(KeyEvent event) (package private) booleanmatches(ServerSelectionList.Entry other) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidrenderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float a) Methods inherited from class ServerSelectionList.Entry
closeMethods inherited from class ObjectSelectionList.Entry
updateNarrationMethods inherited from class AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
-
LAN_SERVER_HEADER
-
HIDDEN_ADDRESS_TEXT
-
screen
-
minecraft
-
serverData
-
-
Constructor Details
-
NetworkServerEntry
-
-
Method Details
-
renderContent
- Specified by:
renderContentin classAbstractSelectionList.Entry<ServerSelectionList.Entry>
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
keyPressed
-
join
public void join()- Specified by:
joinin classServerSelectionList.Entry
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
getServerNarration
-
matches
- Specified by:
matchesin classServerSelectionList.Entry
-