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
,NarrationSupplier
- Enclosing class:
ServerSelectionList
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FaviconTexture
private static final int
private static final int
private long
private byte[]
private final Minecraft
private final JoinMultiplayerScreen
private final ServerData
private static final int
private static final int
private static final int
private ResourceLocation
private Component
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprotected
OnlineServerEntry
(JoinMultiplayerScreen p_99864_, ServerData p_99865_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canJoin()
void
close()
protected void
drawIcon
(GuiGraphics p_281338_, int p_283001_, int p_282834_, ResourceLocation p_282534_) boolean
keyPressed
(int p_99875_, int p_99876_, int p_99877_) boolean
mouseClicked
(double p_99868_, double p_99869_, int p_99870_) private void
void
render
(GuiGraphics p_281406_, int p_281506_, int p_282921_, int p_281363_, int p_283596_, int p_281630_, int p_283567_, int p_282864_, boolean p_282999_, float p_281423_) private void
swap
(int p_99872_, int p_99873_) void
private boolean
uploadServerIcon
(byte[] p_273176_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocused
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.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods 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 -
lastClickTime
private long lastClickTime -
onlinePlayersTooltip
-
statusIcon
-
statusIconTooltip
-
-
Constructor Details
-
OnlineServerEntry
-
-
Method Details
-
render
public void render(GuiGraphics p_281406_, int p_281506_, int p_282921_, int p_281363_, int p_283596_, int p_281630_, int p_283567_, int p_282864_, boolean p_282999_, float p_281423_) - Specified by:
render
in classAbstractSelectionList.Entry<ServerSelectionList.Entry>
-
refreshStatus
private void refreshStatus() -
updateServerList
public void updateServerList() -
drawIcon
protected void drawIcon(GuiGraphics p_281338_, int p_283001_, int p_282834_, ResourceLocation p_282534_) -
canJoin
private boolean canJoin() -
uploadServerIcon
private boolean uploadServerIcon(@Nullable byte[] p_273176_) -
keyPressed
public boolean keyPressed(int p_99875_, int p_99876_, int p_99877_) -
swap
private void swap(int p_99872_, int p_99873_) -
mouseClicked
public boolean mouseClicked(double p_99868_, double p_99869_, int p_99870_) - Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
getServerData
-
getNarration
- Specified by:
getNarration
in classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classServerSelectionList.Entry
-