summaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/identifierutil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/identifierutil.kt')
-rw-r--r--src/main/kotlin/util/identifierutil.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/util/identifierutil.kt b/src/main/kotlin/util/identifierutil.kt
new file mode 100644
index 0000000..e94e15c
--- /dev/null
+++ b/src/main/kotlin/util/identifierutil.kt
@@ -0,0 +1,11 @@
+package moe.nea.ultranotifier.util
+
+import moe.nea.ultranotifier.Constants
+import net.minecraft.util.Identifier
+
+fun identifier(namespace: String, path: String): Identifier {
+ return Identifier(namespace, path)
+}
+
+fun vanillaIdentifier(path: String) = identifier("minecraft", path)
+fun ultraIdentifier(path: String) = identifier(Constants.MOD_ID, path)