ChunkIdentification.java
net.minecraft.util.profiling.jfr.stats.ChunkIdentification
信息
- 全限定名:net.minecraft.util.profiling.jfr.stats.ChunkIdentification
- 类型:public record
- 包:net.minecraft.util.profiling.jfr.stats
- 源码路径:src/main/java/net/minecraft/util/profiling/jfr/stats/ChunkIdentification.java
- 起始行号:L5
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static ChunkIdentification from(RecordedEvent event) @ L6
- 方法名:from
- 源码定位:L6
- 返回类型:ChunkIdentification
- 修饰符:public static
参数:
- event: RecordedEvent
说明:
TODO
代码
public record ChunkIdentification(String level, String dimension, int x, int z) {
public static ChunkIdentification from(RecordedEvent event) {
return new ChunkIdentification(event.getString("level"), event.getString("dimension"), event.getInt("chunkPosX"), event.getInt("chunkPosZ"));
}
}引用的其他类
- 无