EmptyProfileResults .java

net.minecraft.util.profiling.EmptyProfileResults (class): members: getProfilerResults, getStartTimeTicks, getStartTimeNano, getEndTimeTicks, saveResults.

net.minecraft.util.profilingclass48 linescommon787 B

Implements

API Surface (7)

List<ResultField> getTimes(final String path)
boolean saveResults(final Path file)
long getStartTimeNano()
int getStartTimeTicks()
long getEndTimeNano()
int getEndTimeTicks()
String getProfilerResults()

Fields & Constants (1)

EMPTY

Code Graph: Dependencies (3)

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

Full Source

EmptyProfileResults.java48 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling;
2
3
import java.nio.file.Path;
4
import java.util.Collections;
5
import java.util.List;
6
7
public class EmptyProfileResults implements ProfileResults {
8
	public static final EmptyProfileResults EMPTY = new EmptyProfileResults();
9
10
	private EmptyProfileResults() {
11
	}
12
13
	@Override
14
	public List<ResultField> getTimes(final String path) {
15
		return Collections.emptyList();
16
	}
17
18
	@Override
19
	public boolean saveResults(final Path file) {
20
		return false;
21
	}
22
23
	@Override
24
	public long getStartTimeNano() {
25
		return 0L;
26
	}
27
28
	@Override
29
	public int getStartTimeTicks() {
30
		return 0;
31
	}
32
33
	@Override
34
	public long getEndTimeNano() {
35
		return 0L;
36
	}
37
38
	@Override
39
	public int getEndTimeTicks() {
40
		return 0;
41
	}
42
43
	@Override
44
	public String getProfilerResults() {
45
		return "";
46
	}
47
}
48

Decompiled Minecraft 26.3 source of EmptyProfileResults (net/minecraft/util/profiling/EmptyProfileResults.java) with Mojang official mappings, stored verbatim on the site.