RealmsClientConfig .java

com.mojang.realmsclient.client.RealmsClientConfig (class, 22 lines): members: setProxy, getProxy, proxy. imports: Nullable.

com.mojang.realmsclient.clientclass22 linesclient482 B

API Surface (1)

void setProxy(final Proxy proxy)

Fields & Constants (1)

proxy

Full Source

RealmsClientConfig.java22 lines · Minecraft 26.3 · verbatim
1
package com.mojang.realmsclient.client;
2
3
import java.net.Proxy;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import org.jspecify.annotations.Nullable;
7
8
@Environment(EnvType.CLIENT)
9
public class RealmsClientConfig {
10
	private static @Nullable Proxy proxy;
11
12
	public static @Nullable Proxy getProxy() {
13
		return proxy;
14
	}
15
16
	public static void setProxy(final Proxy proxy) {
17
		if (RealmsClientConfig.proxy == null) {
18
			RealmsClientConfig.proxy = proxy;
19
		}
20
	}
21
}
22

Decompiled Minecraft 26.3 source of RealmsClientConfig (com/mojang/realmsclient/client/RealmsClientConfig.java) with Mojang official mappings, stored verbatim on the site.