LanServer .java

net.minecraft.client.server.LanServer (class, 31 lines): members: updatePingTime, getAddress, pingTime, address, getMotd, motd. imports: Util.

net.minecraft.client.serverclass31 linesclient607 B

API Surface (3)

String getMotd()
String getAddress()
void updatePingTime()

Fields & Constants (3)

motd
address
pingTime

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

LanServer.java31 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.server;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.util.Util;
6
7
@Environment(EnvType.CLIENT)
8
public class LanServer {
9
	private final String motd;
10
	private final String address;
11
	private long pingTime;
12
13
	public LanServer(final String motd, final String address) {
14
		this.motd = motd;
15
		this.address = address;
16
		this.pingTime = Util.getMillis();
17
	}
18
19
	public String getMotd() {
20
		return this.motd;
21
	}
22
23
	public String getAddress() {
24
		return this.address;
25
	}
26
27
	public void updatePingTime() {
28
		this.pingTime = Util.getMillis();
29
	}
30
}
31

Decompiled Minecraft 26.3 source of LanServer (net/minecraft/client/server/LanServer.java) with Mojang official mappings, stored verbatim on the site.