Class ServerSelectionList.OnlineServerEntry
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.OnlineServerEntry
- All Implemented Interfaces:
AutoCloseable,GuiEventListener,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
ServerSelectionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FaviconTextureprivate static final intprivate static final intprivate byte[]private final Minecraftprivate final JoinMultiplayerScreenprivate final ServerDataprivate static final intprivate static final intprivate static final intprivate ResourceLocationprivate ComponentFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOnlineServerEntry(JoinMultiplayerScreen pScreen, ServerData pServerData) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanJoin()voidclose()protected voiddrawIcon(GuiGraphics pGuiGraphics, int pX, int pY, ResourceLocation pIcon) voidjoin()booleankeyPressed(KeyEvent p_446576_) (package private) booleanmatches(ServerSelectionList.Entry p_439461_) booleanmouseClicked(MouseButtonEvent p_446987_, boolean p_434424_) private voidvoidrenderContent(GuiGraphics p_439846_, int p_440562_, int p_439671_, boolean p_438902_, float p_439513_) private voidswap(int pPos1, int pPos2) voidprivate booleanuploadServerIcon(byte[] pIconBytes) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
-
ICON_HEIGHT
private static final int ICON_HEIGHT- See Also:
-
SPACING
private static final int SPACING- See Also:
-
STATUS_ICON_WIDTH
private static final int STATUS_ICON_WIDTH- See Also:
-
STATUS_ICON_HEIGHT
private static final int STATUS_ICON_HEIGHT- See Also:
-
screen
-
minecraft
-
serverData
-
icon
-
lastIconBytes
@Nullable private byte[] lastIconBytes -
onlinePlayersTooltip
-
statusIcon
-
statusIconTooltip
-
-
Constructor Details
-
OnlineServerEntry
-
-
Method Details
-
renderContent
public void renderContent(GuiGraphics p_439846_, int p_440562_, int p_439671_, boolean p_438902_, float p_439513_) - Specified by:
renderContentin classAbstractSelectionList.Entry<ServerSelectionList.Entry>
-
refreshStatus
private void refreshStatus() -
updateServerList
public void updateServerList() -
drawIcon
-
canJoin
private boolean canJoin() -
uploadServerIcon
private boolean uploadServerIcon(@Nullable byte[] pIconBytes) -
keyPressed
-
join
public void join()- Specified by:
joinin classServerSelectionList.Entry
-
swap
private void swap(int pPos1, int pPos2) -
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
getServerData
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classServerSelectionList.Entry
-
matches
- Specified by:
matchesin classServerSelectionList.Entry
-