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:
GuiEventListener
,NarrationSupplier
- Enclosing class:
- ServerSelectionList
-
Field Summary
Modifier and TypeFieldDescriptionprivate DynamicTexture
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private ResourceLocation
private long
private String
private Minecraft
private JoinMultiplayerScreen
private ServerData
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
-
Constructor Summary
ModifierConstructorDescriptionprotected
OnlineServerEntry(JoinMultiplayerScreen p_99864_, ServerData p_99865_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canJoin()
protected void
drawIcon(PoseStack p_99890_, int p_99891_, int p_99892_, ResourceLocation p_99893_)
boolean
keyPressed(int p_99875_, int p_99876_, int p_99877_)
boolean
mouseClicked(double p_99868_, double p_99869_, int p_99870_)
void
render(PoseStack p_99879_, int p_99880_, int p_99881_, int p_99882_, int p_99883_, int p_99884_, int p_99885_, int p_99886_, boolean p_99887_, float p_99888_)
private void
swap(int p_99872_, int p_99873_)
void
private boolean
uploadServerIcon(String p_99897_)
Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
changeFocus, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isMouseOver
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, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
- Constant Field Values
-
ICON_HEIGHT
private static final int ICON_HEIGHT- See Also:
- Constant Field Values
-
ICON_OVERLAY_X_MOVE_RIGHT
private static final int ICON_OVERLAY_X_MOVE_RIGHT- See Also:
- Constant Field Values
-
ICON_OVERLAY_X_MOVE_LEFT
private static final int ICON_OVERLAY_X_MOVE_LEFT- See Also:
- Constant Field Values
-
ICON_OVERLAY_X_MOVE_DOWN
private static final int ICON_OVERLAY_X_MOVE_DOWN- See Also:
- Constant Field Values
-
ICON_OVERLAY_X_MOVE_UP
private static final int ICON_OVERLAY_X_MOVE_UP- See Also:
- Constant Field Values
-
ICON_OVERLAY_Y_UNSELECTED
private static final int ICON_OVERLAY_Y_UNSELECTED- See Also:
- Constant Field Values
-
ICON_OVERLAY_Y_SELECTED
private static final int ICON_OVERLAY_Y_SELECTED- See Also:
- Constant Field Values
-
screen
-
minecraft
-
serverData
-
iconLocation
-
lastIconB64
-
icon
-
lastClickTime
private long lastClickTime
-
-
Constructor Details
-
OnlineServerEntry
-
-
Method Details
-
render
public void render(PoseStack p_99879_, int p_99880_, int p_99881_, int p_99882_, int p_99883_, int p_99884_, int p_99885_, int p_99886_, boolean p_99887_, float p_99888_)- Specified by:
render
in classAbstractSelectionList.Entry<ServerSelectionList.Entry>
-
updateServerList
public void updateServerList() -
drawIcon
-
canJoin
private boolean canJoin() -
uploadServerIcon
-
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>
-