diff options
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/platform')
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/platform/Env.java | 10 | ||||
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java | 22 |
2 files changed, 32 insertions, 0 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/platform/Env.java b/common/src/main/java/dev/isxander/yacl3/platform/Env.java new file mode 100644 index 0000000..276d294 --- /dev/null +++ b/common/src/main/java/dev/isxander/yacl3/platform/Env.java @@ -0,0 +1,10 @@ +package dev.isxander.yacl3.platform; + +public enum Env { + CLIENT, + SERVER; + + public boolean isClient() { + return this == Env.CLIENT; + } +} diff --git a/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java b/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java new file mode 100644 index 0000000..590723e --- /dev/null +++ b/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java @@ -0,0 +1,22 @@ +package dev.isxander.yacl3.platform; + +import dev.architectury.injectables.annotations.ExpectPlatform; + +import java.nio.file.Path; + +public final class YACLPlatform { + @ExpectPlatform + public static Env getEnvironment() { + throw new AssertionError(); + } + + @ExpectPlatform + public static Path getConfigDir() { + throw new AssertionError(); + } + + @ExpectPlatform + public static boolean isDevelopmentEnv() { + throw new AssertionError(); + } +} |