From a694321b8952a64d43134961d58fb60e1adc0cf5 Mon Sep 17 00:00:00 2001 From: isXander Date: Thu, 7 Dec 2023 18:34:17 +0000 Subject: 1.20.4 + Migrate from Forge platform to NeoForge platform --- .../yacl3/platform/forge/YACLForgeEntrypoint.java | 11 ---------- .../yacl3/platform/forge/YACLPlatformImpl.java | 24 ---------------------- 2 files changed, 35 deletions(-) delete mode 100644 forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLForgeEntrypoint.java delete mode 100644 forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLPlatformImpl.java (limited to 'forge/src/main/java/dev') diff --git a/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLForgeEntrypoint.java b/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLForgeEntrypoint.java deleted file mode 100644 index 0301add..0000000 --- a/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLForgeEntrypoint.java +++ /dev/null @@ -1,11 +0,0 @@ -package dev.isxander.yacl3.platform.forge; - -import net.minecraftforge.fml.common.Mod; - -@Mod("yet_another_config_lib_v3") -public class YACLForgeEntrypoint { - public YACLForgeEntrypoint() { - - } - -} diff --git a/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLPlatformImpl.java b/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLPlatformImpl.java deleted file mode 100644 index 6b10cb6..0000000 --- a/forge/src/main/java/dev/isxander/yacl3/platform/forge/YACLPlatformImpl.java +++ /dev/null @@ -1,24 +0,0 @@ -package dev.isxander.yacl3.platform.forge; - -import dev.isxander.yacl3.platform.Env; -import net.minecraftforge.fml.loading.FMLEnvironment; -import net.minecraftforge.fml.loading.FMLPaths; - -import java.nio.file.Path; - -public class YACLPlatformImpl { - public static Env getEnvironment() { - return switch (FMLEnvironment.dist) { - case CLIENT -> Env.CLIENT; - case DEDICATED_SERVER -> Env.SERVER; - }; - } - - public static boolean isDevelopmentEnv() { - return !FMLEnvironment.production; - } - - public static Path getConfigDir() { - return FMLPaths.CONFIGDIR.get(); - } -} -- cgit