RealmsClientConfig.java
com.mojang.realmsclient.client.RealmsClientConfig
信息
- 全限定名:com.mojang.realmsclient.client.RealmsClientConfig
- 类型:public class
- 包:com.mojang.realmsclient.client
- 源码路径:src/main/java/com/mojang/realmsclient/client/RealmsClientConfig.java
- 起始行号:L9
- 职责:
TODO
字段/常量
proxy- 类型:
Proxy - 修饰符:
private static - 源码定位:
L10 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static Proxy getProxy() @ L12
- 方法名:getProxy
- 源码定位:L12
- 返回类型:Proxy
- 修饰符:public static
参数:
- 无
说明:
TODO
public static void setProxy(Proxy proxy) @ L16
- 方法名:setProxy
- 源码定位:L16
- 返回类型:void
- 修饰符:public static
参数:
- proxy: Proxy
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class RealmsClientConfig {
private static @Nullable Proxy proxy;
public static @Nullable Proxy getProxy() {
return proxy;
}
public static void setProxy(Proxy proxy) {
if (RealmsClientConfig.proxy == null) {
RealmsClientConfig.proxy = proxy;
}
}
}引用的其他类
- 无