aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/Registrations.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-05 10:02:32 -0500
commiteb5a87defb71ef174501d4092d7885f39a48bc77 (patch)
tree197a6894fcfee9146c0b913f97f924638421d0aa /src/main/kotlin/com/dulkirfabric/Registrations.kt
parent41832da25f9aa5cb37fee870752e64e5a9057c17 (diff)
downloadDulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.gz
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.tar.bz2
DulkirMod-Fabric-eb5a87defb71ef174501d4092d7885f39a48bc77.zip
config screen stuff
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/Registrations.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/Registrations.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/Registrations.kt b/src/main/kotlin/com/dulkirfabric/Registrations.kt
new file mode 100644
index 0000000..101feca
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/Registrations.kt
@@ -0,0 +1,24 @@
+package com.dulkirfabric
+
+import com.dulkirfabric.DulkirModFabric.EVENT_BUS
+import com.dulkirfabric.commands.ConfigCommand
+import com.mojang.brigadier.CommandDispatcher
+import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback
+import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
+import net.minecraft.command.CommandRegistryAccess
+
+/**
+ * Collection of different mod registration stuff ran on initializing the mod. It is separated for readability
+ * purposes, as the list of features is planned to be quite large.
+ */
+object Registrations {
+
+ fun registerCommands() {
+ val cre = ClientCommandRegistrationCallback.EVENT
+ cre.register(ConfigCommand::register)
+ }
+
+ fun registerEventListeners() {
+ EVENT_BUS.subscribe(DulkirModFabric)
+ }
+} \ No newline at end of file