From 04fe933f4c24817100f3101f088accf55a621f8a Mon Sep 17 00:00:00 2001 From: isxander Date: Thu, 11 Apr 2024 18:43:06 +0100 Subject: Extremely fragile and broken multiversion build with stonecutter --- .../main/java/dev/isxander/yacl3/platform/Env.java | 10 -------- .../dev/isxander/yacl3/platform/YACLConfig.java | 16 ------------- .../isxander/yacl3/platform/YACLEntrypoint.java | 11 --------- .../dev/isxander/yacl3/platform/YACLPlatform.java | 27 ---------------------- 4 files changed, 64 deletions(-) delete mode 100644 common/src/main/java/dev/isxander/yacl3/platform/Env.java delete mode 100644 common/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java delete mode 100644 common/src/main/java/dev/isxander/yacl3/platform/YACLEntrypoint.java delete mode 100644 common/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java (limited to 'common/src/main/java/dev/isxander/yacl3/platform') 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 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); - } -} -- cgit