FpsStat .java

net.minecraft.util.profiling.jfr.stats.FpsStat (record, 10 lines): record with 1 component. members: fps. imports: RecordedEvent.

net.minecraft.util.profiling.jfr.statsrecord10 linescommon247 B

API Surface (2)

record FpsStat(int fps)
FpsStat from(final RecordedEvent event, final String field)

Full Source

FpsStat.java10 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.profiling.jfr.stats;
2
3
import jdk.jfr.consumer.RecordedEvent;
4
5
public record FpsStat(int fps) {
6
	public static FpsStat from(final RecordedEvent event, final String field) {
7
		return new FpsStat(event.getInt(field));
8
	}
9
}
10

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