diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/utils/MinecraftExecutor.kt | 10 |
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) + } +} |