aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/utils
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-07-17 03:53:57 +0200
committernea <nea@nea.moe>2023-07-17 03:53:57 +0200
commit86d7516f3f619a0368b36af6dc5cad13babb5cb5 (patch)
tree7f59d4dd2553a0c21834f4818bdf312bb76381ce /src/main/kotlin/dulkirmod/utils
parent69db365139428bd0c433ccbb9d31dfded7216572 (diff)
downloadDulkirMod-86d7516f3f619a0368b36af6dc5cad13babb5cb5.tar.gz
DulkirMod-86d7516f3f619a0368b36af6dc5cad13babb5cb5.tar.bz2
DulkirMod-86d7516f3f619a0368b36af6dc5cad13babb5cb5.zip
Add update notificationsupdatenotifs
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils')
-rw-r--r--src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt b/src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt
new file mode 100644
index 0000000..6939f88
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt
@@ -0,0 +1,10 @@
+package dulkirmod.utils
+
+import dulkirmod.DulkirMod
+import java.util.concurrent.Executor
+
+object MinecraftExecutor : Executor {
+ override fun execute(command: Runnable) {
+ DulkirMod.mc.addScheduledTask(command)
+ }
+}