aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-01 17:48:53 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-01 17:48:53 +0200
commit0fe5e487922a6ff50b9c415b9384157fbd64b2b5 (patch)
treee62cb4b9abea80d144d95a7bd2e0114088944587 /src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
downloadpotato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.tar.gz
potato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.tar.bz2
potato-crimes-0fe5e487922a6ff50b9c415b9384157fbd64b2b5.zip
Initial commit
Diffstat (limited to 'src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt')
-rw-r--r--src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
new file mode 100644
index 0000000..a421e35
--- /dev/null
+++ b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
@@ -0,0 +1,19 @@
+package moe.nea.potatocrime
+
+import moe.nea.potatocrime.registry.PotatoRegistry
+import net.fabricmc.api.ModInitializer
+import org.slf4j.LoggerFactory
+
+object PotatoCrime : ModInitializer {
+
+ val modId = "potato-crime"
+ private val logger = LoggerFactory.getLogger("potato-crime")
+
+ override fun onInitialize() {
+ // This code runs as soon as Minecraft is in a mod-load-ready state.
+ // However, some things (like resources) may still be uninitialized.
+ // Proceed with mild caution.
+ logger.info("Hello Fabric world!")
+ PotatoRegistry.registerAll()
+ }
+} \ No newline at end of file