Class ServerSelectionList.OnlineServerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
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 static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private long
private byte[]
private final Minecraft
private final JoinMultiplayerScreen
private final ServerData
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_) private boolean
boolean
keyPressed
(int p_99875_, int p_99876_, int p_99877_) boolean
mouseClicked
(double p_99868_, double p_99869_, int p_99870_) private boolean
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:
-
ICON_OVERLAY_X_MOVE_RIGHT
private static final int ICON_OVERLAY_X_MOVE_RIGHT- See Also:
-
ICON_OVERLAY_X_MOVE_LEFT
private static final int ICON_OVERLAY_X_MOVE_LEFT- See Also:
-
ICON_OVERLAY_X_MOVE_DOWN
private static final int ICON_OVERLAY_X_MOVE_DOWN- See Also:
-
ICON_OVERLAY_X_MOVE_UP
private static final int ICON_OVERLAY_X_MOVE_UP- See Also:
-
ICON_OVERLAY_Y_UNSELECTED
private static final int ICON_OVERLAY_Y_UNSELECTED- See Also:
-
ICON_OVERLAY_Y_SELECTED
private static final int ICON_OVERLAY_Y_SELECTED- See Also:
-
screen
-
minecraft
-
serverData
-
icon
-
lastIconBytes
@Nullable private byte[] lastIconBytes -
lastClickTime
private long lastClickTime
-
-
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>
-
pingCompleted
private boolean pingCompleted() -
isCompatible
private boolean isCompatible() -
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_) -
getServerData
-
getNarration
- Specified by:
getNarration
in classObjectSelectionList.Entry<ServerSelectionList.Entry>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classServerSelectionList.Entry
-