diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 06:12:23 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 06:12:23 +0700 |
commit | d4bb5a94308d4379ef3d6cc7b9221ea0d98ff051 (patch) | |
tree | 9bb9b53e2823f73084780673763504f4098bae69 /src/main/kotlin | |
parent | d2b1d57120bb51e76191302a58d935afe52b89df (diff) | |
download | OneConfig-d4bb5a94308d4379ef3d6cc7b9221ea0d98ff051.tar.gz OneConfig-d4bb5a94308d4379ef3d6cc7b9221ea0d98ff051.tar.bz2 OneConfig-d4bb5a94308d4379ef3d6cc7b9221ea0d98ff051.zip |
Separate Minecraft dependant and non-dependant code
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt | 9 | ||||
-rw-r--r-- | src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt | 11 |
2 files changed, 0 insertions, 20 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 deleted file mode 100644 index c8c18e4..0000000 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt +++ /dev/null @@ -1,9 +0,0 @@ -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 diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt deleted file mode 100644 index c70f686..0000000 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/GuiUtilsDSL.kt +++ /dev/null @@ -1,11 +0,0 @@ -package cc.polyfrost.oneconfig.utils.dsl - -import cc.polyfrost.oneconfig.utils.gui.GuiUtils -import net.minecraft.client.gui.GuiScreen - -/** - * Displays a screen after the specified amount of ticks. - * - * @param ticks the amount of ticks to wait for before displaying the screen. - */ -fun GuiScreen.openScreen(ticks: Int = 1) = GuiUtils.displayScreen(this, ticks)
\ No newline at end of file |