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
FieldsModifier and TypeFieldDescriptionprivate DynamicTextureprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final ResourceLocationprivate longprivate Stringprivate final Minecraftprivate final JoinMultiplayerScreenprivate final ServerDataFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
listFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOnlineServerEntry(JoinMultiplayerScreen p_99864_, ServerData p_99865_) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanJoin()protected voiddrawIcon(PoseStack p_99890_, int p_99891_, int p_99892_, ResourceLocation p_99893_) booleankeyPressed(int p_99875_, int p_99876_, int p_99877_) booleanmouseClicked(double p_99868_, double p_99869_, int p_99870_) voidrender(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 voidswap(int p_99872_, int p_99873_) voidprivate booleanuploadServerIcon(String p_99897_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isMouseOverMethods 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, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
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
-
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:
renderin 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:
getNarrationin classObjectSelectionList.Entry<ServerSelectionList.Entry>
-