summaryrefslogtreecommitdiff
path: root/src/main/kotlin/UltraNotifierEntryPoint.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-21 21:17:41 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-21 21:17:41 +0200
commitf25b818d9d41e2bb3969399cfc8bbff976b5aad7 (patch)
tree5f9137b374dfca42f596851c85116c9da181fa50 /src/main/kotlin/UltraNotifierEntryPoint.kt
downloadultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.gz
ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.tar.bz2
ultra-notifier-f25b818d9d41e2bb3969399cfc8bbff976b5aad7.zip
Init
Diffstat (limited to 'src/main/kotlin/UltraNotifierEntryPoint.kt')
-rw-r--r--src/main/kotlin/UltraNotifierEntryPoint.kt25
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