Search in sources :

Example 11 with CrashException

use of net.minecraft.util.crash.CrashException in project lithium-fabric by CaffeineMC.

the class DataTrackerMixin method onGetException.

private static <T> CrashException onGetException(Throwable cause, TrackedData<T> data) {
    CrashReport report = CrashReport.create(cause, "Getting synced entity data");
    CrashReportSection section = report.addElement("Synced entity data");
    section.add("Data ID", data);
    return new CrashException(report);
}
Also used : CrashException(net.minecraft.util.crash.CrashException) CrashReport(net.minecraft.util.crash.CrashReport) CrashReportSection(net.minecraft.util.crash.CrashReportSection)

Aggregations

CrashException (net.minecraft.util.crash.CrashException)11 CrashReport (net.minecraft.util.crash.CrashReport)11 CrashReportSection (net.minecraft.util.crash.CrashReportSection)11 GuiElement (de.johni0702.minecraft.gui.element.GuiElement)4 ReadableDimension (de.johni0702.minecraft.gui.utils.lwjgl.ReadableDimension)4 ReadablePoint (de.johni0702.minecraft.gui.utils.lwjgl.ReadablePoint)4 OffsetGuiRenderer (de.johni0702.minecraft.gui.OffsetGuiRenderer)3 AbstractComposedGuiElement (de.johni0702.minecraft.gui.element.AbstractComposedGuiElement)2 ComposedGuiElement (de.johni0702.minecraft.gui.element.ComposedGuiElement)2 Point (de.johni0702.minecraft.gui.utils.lwjgl.Point)2 FabricBakedModel (net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel)2 Pair (org.apache.commons.lang3.tuple.Pair)2 Dimension (de.johni0702.minecraft.gui.utils.lwjgl.Dimension)1 DynamicBakedModel (grondag.frex.api.model.DynamicBakedModel)1 ClientSpriteRegistryCallback (net.fabricmc.fabric.api.event.client.ClientSpriteRegistryCallback)1 BakedModel (net.minecraft.client.render.model.BakedModel)1 Sprite (net.minecraft.client.texture.Sprite)1 Identifier (net.minecraft.util.Identifier)1 ModifyVariable (org.spongepowered.asm.mixin.injection.ModifyVariable)1