aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/platform
diff options
context:
space:
mode:
authorisxander <xander@isxander.dev>2024-04-11 18:43:06 +0100
committerisxander <xander@isxander.dev>2024-04-11 18:43:06 +0100
commit04fe933f4c24817100f3101f088accf55a621f8a (patch)
treefeff94ca3ab4484160e69a24f4ee38522381950e /common/src/main/java/dev/isxander/yacl3/platform
parent831b894fdb7fe3e173d81387c8f6a2402b8ccfa9 (diff)
downloadYetAnotherConfigLib-04fe933f4c24817100f3101f088accf55a621f8a.tar.gz
YetAnotherConfigLib-04fe933f4c24817100f3101f088accf55a621f8a.tar.bz2
YetAnotherConfigLib-04fe933f4c24817100f3101f088accf55a621f8a.zip
Extremely fragile and broken multiversion build with stonecutter
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/platform')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/platform/Env.java10
-rw-r--r--common/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java16
-rw-r--r--common/src/main/java/dev/isxander/yacl3/platform/YACLEntrypoint.java11
-rw-r--r--common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java27
4 files changed, 0 insertions, 64 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
deleted file mode 100644
index 276d294..0000000
--- a/common/src/main/java/dev/isxander/yacl3/platform/Env.java
+++ /dev/null
@@ -1,10 +0,0 @@
-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/YACLConfig.java b/common/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java
deleted file mode 100644
index 2bc27ef..0000000
--- a/common/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package dev.isxander.yacl3.platform;
-
-import dev.isxander.yacl3.config.v2.api.ConfigClassHandler;
-import dev.isxander.yacl3.config.v2.api.serializer.GsonConfigSerializerBuilder;
-
-public class YACLConfig {
- public static final ConfigClassHandler<YACLConfig> HANDLER = ConfigClassHandler.createBuilder(YACLConfig.class)
- .id(YACLPlatform.rl("config"))
- .serializer(config -> GsonConfigSerializerBuilder.create(config)
- .setPath(YACLPlatform.getConfigDir().resolve("yacl.json5"))
- .setJson5(true)
- .build())
- .build();
-
- // place future configuration here
-}
diff --git a/common/src/main/java/dev/isxander/yacl3/platform/YACLEntrypoint.java b/common/src/main/java/dev/isxander/yacl3/platform/YACLEntrypoint.java
deleted file mode 100644
index 32cfc81..0000000
--- a/common/src/main/java/dev/isxander/yacl3/platform/YACLEntrypoint.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package dev.isxander.yacl3.platform;
-
-import dev.isxander.yacl3.impl.utils.YACLConstants;
-
-public class YACLEntrypoint {
- public static void onInitializeClient() {
- YACLConfig.HANDLER.load();
-
- YACLConstants.LOGGER.info("YetAnotherConfigLib initialised.");
- }
-}
diff --git a/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java b/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java
deleted file mode 100644
index 51e47bf..0000000
--- a/common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package dev.isxander.yacl3.platform;
-
-import dev.architectury.injectables.annotations.ExpectPlatform;
-import net.minecraft.resources.ResourceLocation;
-
-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();
- }
-
- public static ResourceLocation rl(String path) {
- return new ResourceLocation("yet_another_config_lib_v3", path);
- }
-}