From 3ec6a29f79c4f4c437b2dd4dec34dca12ea0924f Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:12:20 +1100 Subject: Backend: Start preprocessing mappings (#2776) --- .../main/kotlin/at/hannibal2/skyhanni/skyhannimodule/ModuleProcessor.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'annotation-processors') diff --git a/annotation-processors/src/main/kotlin/at/hannibal2/skyhanni/skyhannimodule/ModuleProcessor.kt b/annotation-processors/src/main/kotlin/at/hannibal2/skyhanni/skyhannimodule/ModuleProcessor.kt index 5ce902613..6275eac83 100644 --- a/annotation-processors/src/main/kotlin/at/hannibal2/skyhanni/skyhannimodule/ModuleProcessor.kt +++ b/annotation-processors/src/main/kotlin/at/hannibal2/skyhanni/skyhannimodule/ModuleProcessor.kt @@ -25,8 +25,10 @@ class ModuleProcessor(private val codeGenerator: CodeGenerator, private val logg skyHanniEvent = resolver.getClassDeclarationByName("at.hannibal2.skyhanni.api.event.SkyHanniEvent")?.asStarProjectedType() + minecraftForgeEvent = resolver.getClassDeclarationByName("net.minecraftforge.fml.common.eventhandler.Event") ?.asStarProjectedType() + ?: return emptyList() val symbols = resolver.getSymbolsWithAnnotation(SkyHanniModule::class.qualifiedName!!).toList() val validSymbols = symbols.mapNotNull { validateSymbol(it) } -- cgit