StructureGenerationEvent.java
net.minecraft.util.profiling.jfr.event.StructureGenerationEvent
信息
- 全限定名:net.minecraft.util.profiling.jfr.event.StructureGenerationEvent
- 类型:public class
- 包:net.minecraft.util.profiling.jfr.event
- 源码路径:src/main/java/net/minecraft/util/profiling/jfr/event/StructureGenerationEvent.java
- 起始行号:L21
- 继承:Event
- 职责:
TODO
字段/常量
-
EVENT_NAME- 类型:
String - 修饰符:
public static final - 源码定位:
L22 - 说明:
TODO
- 类型:
-
TYPE- 类型:
EventType - 修饰符:
public static final - 源码定位:
L23 - 说明:
TODO
- 类型:
-
chunkPosX- 类型:
int - 修饰符:
public final - 源码定位:
L24 - 说明:
TODO
- 类型:
-
chunkPosZ- 类型:
int - 修饰符:
public final - 源码定位:
L27 - 说明:
TODO
- 类型:
-
structure- 类型:
String - 修饰符:
public final - 源码定位:
L30 - 说明:
TODO
- 类型:
-
level- 类型:
String - 修饰符:
public final - 源码定位:
L33 - 说明:
TODO
- 类型:
-
success- 类型:
boolean - 修饰符:
public - 源码定位:
L36 - 说明:
TODO
- 类型:
内部类/嵌套类型
net.minecraft.util.profiling.jfr.event.StructureGenerationEvent.Fields- 类型:
interface - 修饰符:
public - 源码定位:
L47 - 说明:
TODO
- 类型:
构造器
public StructureGenerationEvent(ChunkPos sourceChunkPos, Holder<Structure> structure, ResourceKey<Level> level) @ L40
- 构造器名:StructureGenerationEvent
- 源码定位:L40
- 修饰符:public
参数:
- sourceChunkPos: ChunkPos
- structure: Holder
- level: ResourceKey
说明:
TODO
方法
下面的方法块按源码顺序生成。
- 无
代码
)
@StackTrace(false)
@Enabled(false)
public class StructureGenerationEvent extends Event {
public static final String EVENT_NAME = "minecraft.StructureGeneration";
public static final EventType TYPE = EventType.getEventType(StructureGenerationEvent.class);
@Name("chunkPosX")
@Label("Chunk X Position")
public final int chunkPosX;
@Name("chunkPosZ")
@Label("Chunk Z Position")
public final int chunkPosZ;
@Name("structure")
@Label("Structure")
public final String structure;
@Name("level")
@Label("Level")
public final String level;
@Name("success")
@Label("Success")
public boolean success;
public StructureGenerationEvent(ChunkPos sourceChunkPos, Holder<Structure> structure, ResourceKey<Level> level) {
this.chunkPosX = sourceChunkPos.x();
this.chunkPosZ = sourceChunkPos.z();
this.structure = structure.getRegisteredName();
this.level = level.identifier().toString();
}
public interface Fields {
String CHUNK_POS_X = "chunkPosX";
String CHUNK_POS_Z = "chunkPosZ";
String STRUCTURE = "structure";
String LEVEL = "level";
String SUCCESS = "success";
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置: