aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-26 11:42:48 +0200
committernea <romangraef@gmail.com>2022-07-26 11:42:48 +0200
commit37218614c6d7f8a903b6532196dfa7d1e94a948f (patch)
treef3ab92298b23ac839eaa84b3af1c769adfa52fda /common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt
parent372eec27e5e0c8ef796ed9e6bcdc68a10df84718 (diff)
downloadfirmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.tar.gz
firmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.tar.bz2
firmament-37218614c6d7f8a903b6532196dfa7d1e94a948f.zip
legacy tag parsing and transformation
Diffstat (limited to 'common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt')
-rw-r--r--common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt30
1 files changed, 0 insertions, 30 deletions
diff --git a/common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt b/common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt
deleted file mode 100644
index 4949054..0000000
--- a/common/src/main/kotlin/net/examplemod/ExampleExpectPlatform.kt
+++ /dev/null
@@ -1,30 +0,0 @@
-package net.examplemod
-
-import dev.architectury.injectables.annotations.ExpectPlatform
-import dev.architectury.platform.Platform
-import java.nio.file.Path
-
-object ExampleExpectPlatform {
- /**
- * We can use [Platform.getConfigFolder] but this is just an example of [ExpectPlatform].
- *
- *
- * This must be a **public static** method. The platform-implemented solution must be placed under a
- * platform sub-package, with its class suffixed with `Impl`.
- *
- *
- * Example:
- * Expect: net.examplemod.ExampleExpectPlatform#getConfigDirectory()
- * Actual Fabric: net.examplemod.fabric.ExampleExpectPlatformImpl#getConfigDirectory()
- * Actual Forge: net.examplemod.forge.ExampleExpectPlatformImpl#getConfigDirectory()
- *
- *
- * [You should also get the IntelliJ plugin to help with @ExpectPlatform.](https://plugins.jetbrains.com/plugin/16210-architectury)
- */
- @ExpectPlatform
- @JvmStatic
- fun getConfigDirectory(): Path {
- // Just throw an error, the content should get replaced at runtime.
- throw AssertionError()
- }
-}