StructureGenStat .java

net.minecraft.util.profiling.jfr.stats.StructureGenStat (record): members: duration, chunkPos, structureName, success, level. strings: "success", "level".

net.minecraft.util.profiling.jfr.statsrecord18 linescommon599 B

Implements

API Surface (1)

StructureGenStat from(final RecordedEvent event)

String literals (4)

"chunkPosX"
"structure"
"level"
"success"

Code Graph: Dependencies (2)

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

Full Source

StructureGenStat.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling.jfr.stats;
2
3
import java.time.Duration;
4
import jdk.jfr.consumer.RecordedEvent;
5
import net.minecraft.world.level.ChunkPos;
6
7
public record StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) implements TimedStat {
8
	public static StructureGenStat from(final RecordedEvent event) {
9
		return new StructureGenStat(
10
			event.getDuration(),
11
			new ChunkPos(event.getInt("chunkPosX"), event.getInt("chunkPosX")),
12
			event.getString("structure"),
13
			event.getString("level"),
14
			event.getBoolean("success")
15
		);
16
	}
17
}
18

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