diff options
Diffstat (limited to 'src/main/kotlin/UltraNotifierEntryPoint.kt')
-rw-r--r-- | src/main/kotlin/UltraNotifierEntryPoint.kt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/kotlin/UltraNotifierEntryPoint.kt b/src/main/kotlin/UltraNotifierEntryPoint.kt new file mode 100644 index 0000000..34525ea --- /dev/null +++ b/src/main/kotlin/UltraNotifierEntryPoint.kt @@ -0,0 +1,25 @@ +package moe.nea.ultranotifier + +//#if FORGE +//$$ import net.minecraftforge.fml.common.Mod +//$$ +//#if MC == 10809 +//$$ import net.minecraftforge.fml.common.event.FMLInitializationEvent +//$$ @Mod(modid = Constants.MOD_ID, version = Constants.VERSION, useMetadata = true) +//#else +//$$ @Mod(Constants.MOD_ID) +//#endif +//$$ class UltraNotifierEntryPoint { +//$$ @Mod.EventHandler +//$$ fun onInit(@Suppress("UNUSED_PARAMETER") event: FMLInitializationEvent) { +//$$ UltraNotifier.onStartup() +//$$ } +//$$ } +//#else +import net.fabricmc.api.ModInitializer +object UltraNotifierEntryPoint : ModInitializer { + override fun onInitialize() { + UltraNotifier.onStartup() + } +} +//#endif |