Package dev.yumi.mc.core.api
Class CrashReportEvents
java.lang.Object
dev.yumi.mc.core.api.CrashReportEvents
Provides multiple crash-report-related events,
which allow to detect when a crash-report gets generated and to add custom debugging information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents the block details population of crash reports callback interface.static interfaceRepresents the block entity details population of crash reports callback interface.static interfaceRepresents the crash report creation callback interface.static interfaceRepresents the entity details population of crash reports callback interface.static interfaceRepresents the level details population of crash reports callback interface.static interfaceRepresents the system details population of crash reports callback interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.BlockDetailsPopulation> The crash report block details population event.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.BlockEntityDetailsPopulation> The crash report block entity details population event.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.Creation> The crash report creation event.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.EntityDetailsPopulation> The crash report entity details population event.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.LevelDetailsPopulation> The crash report level details population event.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, CrashReportEvents.SystemDetailsPopulation> The crash report system details population event. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CREATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.Creation> CREATEThe crash report creation event. This event is invoked when a crash report is created.- See Also:
-
SYSTEM_DETAILS_POPULATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.SystemDetailsPopulation> SYSTEM_DETAILS_POPULATEThe crash report system details population event. This event is invoked when the system details of a crash report are populated.- See Also:
-
ENTITY_DETAILS_POPULATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.EntityDetailsPopulation> ENTITY_DETAILS_POPULATEThe crash report entity details population event. This event is invoked whenEntity.fillCrashReportCategory(CrashReportCategory)is called.- See Also:
-
BLOCK_ENTITY_DETAILS_POPULATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.BlockEntityDetailsPopulation> BLOCK_ENTITY_DETAILS_POPULATEThe crash report block entity details population event. This event is invoked whenBlockEntity.fillCrashReportCategory(CrashReportCategory)is called.- See Also:
-
BLOCK_DETAILS_POPULATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.BlockDetailsPopulation> BLOCK_DETAILS_POPULATEThe crash report block details population event. This event is invoked whenCrashReportCategory.populateBlockDetails(CrashReportCategory, LevelHeightAccessor, BlockPos, BlockState)is called.- See Also:
-
LEVEL_DETAILS_POPULATE
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier,CrashReportEvents.LevelDetailsPopulation> LEVEL_DETAILS_POPULATEThe crash report level details population event. This event is invoked whenLevel.fillReportDetails(CrashReport)is called.- See Also:
-
-
Constructor Details
-
CrashReportEvents
public CrashReportEvents()
-