aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-04 22:09:25 +0700
committerGitHub <noreply@github.com>2022-06-04 17:09:25 +0200
commitd14d193dec3734cb66b5f36290b51f049ba18e2e (patch)
tree3e26e871097ce7028efb03b33803501b2ba7b4c9 /src/main/kotlin/cc
parent140ffd89293cdad8963d1fc80db382dc5681229f (diff)
downloadOneConfig-d14d193dec3734cb66b5f36290b51f049ba18e2e.tar.gz
OneConfig-d14d193dec3734cb66b5f36290b51f049ba18e2e.tar.bz2
OneConfig-d14d193dec3734cb66b5f36290b51f049ba18e2e.zip
receive and send packet events (#32)
* move from mod events to mixin * packet events
Diffstat (limited to 'src/main/kotlin/cc')
-rw-r--r--src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt
new file mode 100644
index 0000000..a71e3f1
--- /dev/null
+++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt
@@ -0,0 +1,9 @@
+package cc.polyfrost.oneconfig.utils.dsl
+
+import cc.polyfrost.oneconfig.libs.universal.UMinecraft
+
+/**
+ * Gets the current [net.minecraft.client.Minecraft] instance.
+ */
+val mc
+get() = UMinecraft.getMinecraft() \ No newline at end of file