Uses of Class
net.minecraft.client.network.ServerInfo
Package
Description
-
Uses of ServerInfo in net.minecraft.client
-
Uses of ServerInfo in net.minecraft.client.gui.screen
Modifier and TypeFieldDescriptionprivate final ServerInfo
AddServerScreen.server
private final ServerInfo
DirectConnectScreen.serverEntry
Modifier and TypeMethodDescriptionstatic void
ConnectScreen.connect
(Screen screen, MinecraftClient client, ServerAddress address, ServerInfo info, boolean quickPlay) private void
ConnectScreen.connect
(MinecraftClient client, ServerAddress address, @Nullable ServerInfo info) ModifierConstructorDescriptionAddServerScreen
(Screen parent, BooleanConsumer callback, ServerInfo server) DirectConnectScreen
(Screen parent, BooleanConsumer callback, ServerInfo server) -
Uses of ServerInfo in net.minecraft.client.gui.screen.multiplayer
Modifier and TypeFieldDescriptionprivate ServerInfo
MultiplayerScreen.selectedEntry
private final ServerInfo
MultiplayerServerListWidget.ServerEntry.server
-
Uses of ServerInfo in net.minecraft.client.network
Modifier and TypeFieldDescriptionprotected final @Nullable ServerInfo
ClientCommonNetworkHandler.serverInfo
private final @Nullable ServerInfo
ClientConnectionState.serverInfo
The field for theserverInfo
record component.private final @Nullable ServerInfo
ClientLoginNetworkHandler.serverInfo
Modifier and TypeMethodDescriptionstatic ServerInfo
ServerInfo.fromNbt
(NbtCompound root) @Nullable ServerInfo
ClientPlayNetworkHandler.getServerInfo()
@Nullable ServerInfo
ClientConnectionState.serverInfo()
Returns the value of theserverInfo
record component.Modifier and TypeMethodDescriptionvoid
MultiplayerServerListPinger.add
(ServerInfo entry, Runnable saver) void
ServerInfo.copyFrom
(ServerInfo serverInfo) void
ServerInfo.copyWithSettingsFrom
(ServerInfo serverInfo) (package private) void
MultiplayerServerListPinger.ping
(InetSocketAddress socketAddress, ServerAddress address, ServerInfo serverInfo) (package private) void
MultiplayerServerListPinger.showError
(Text error, ServerInfo info) ModifierConstructorDescriptionClientConnectionState
(com.mojang.authlib.GameProfile gameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable immutable, FeatureSet featureSet, @Nullable String string, @Nullable ServerInfo serverInfo, @Nullable Screen screen) ClientLoginNetworkHandler
(ClientConnection connection, MinecraftClient client, @Nullable ServerInfo serverInfo, @Nullable Screen parentScreen, boolean newWorld, @Nullable Duration worldLoadTime, Consumer<Text> statusConsumer) -
Uses of ServerInfo in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate final List<ServerInfo>
ServerList.hiddenServers
private final List<ServerInfo>
ServerList.servers
Modifier and TypeMethodDescriptionServerList.get
(int index) @Nullable ServerInfo
Returns the server info foraddress
, ornull
if there is no such one.@Nullable ServerInfo
Returns the previously hidden server info for the addressaddress
, ornull
if there is no such info.Modifier and TypeMethodDescriptionvoid
ServerList.add
(ServerInfo serverInfo, boolean hidden) Adds a server info to this list.void
ServerList.remove
(ServerInfo serverInfo) private static boolean
ServerList.replace
(ServerInfo serverInfo, List<ServerInfo> serverInfos) Replaces the server info inserverInfos
whose name and address matchserverInfo
's withserverInfo
.void
ServerList.set
(int index, ServerInfo serverInfo) static void
ServerList.updateServerListEntry
(ServerInfo serverInfo) Modifier and TypeMethodDescriptionprivate static boolean
ServerList.replace
(ServerInfo serverInfo, List<ServerInfo> serverInfos) Replaces the server info inserverInfos
whose name and address matchserverInfo
's withserverInfo
. -
Uses of ServerInfo in net.minecraft.client.realms.dto