From ef5bbb69c496f30a0b6817bbd6455ecb78ecf7e5 Mon Sep 17 00:00:00 2001 From: attack8 Date: Thu, 21 Nov 2024 16:42:03 -0500 Subject: [PATCH] Begin work on wold's --- build.gradle | 4 ++++ gradle.properties | 4 +++- .../java/dev/attackeight/the_vault_jei/TheVaultJEI.java | 5 +++++ .../attackeight/the_vault_jei/jei/TheVaultJEIPlugin.java | 6 ++++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 34a2252..47a3a21 100644 --- a/build.gradle +++ b/build.gradle @@ -200,6 +200,10 @@ dependencies { runtimeOnly fg.deobf("curse.maven:modular-routers-250294:4984984") // runtimeOnly fg.deobf("curse.maven:attackeight-quest-addon-946682:5401585") + compileOnly fg.deobf("curse.maven:wolds-vaults-official-mod-958799:5854693") + if (wolds_enable) { + runtimeOnly fg.deobf("curse.maven:wolds-vaults-official-mod-958799:5854693") + } } mixin { diff --git a/gradle.properties b/gradle.properties index f07ce97..224e39f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,4 +21,6 @@ gekolib_version = 3.0.57 jei_version = 9.7.2.281 curios_version = 5.0.9.0 arl_version = 1.7-53.110 -quark_version = 3.2-358.1 \ No newline at end of file +quark_version = 3.2-358.1 + +wolds_enable = true \ No newline at end of file diff --git a/src/main/java/dev/attackeight/the_vault_jei/TheVaultJEI.java b/src/main/java/dev/attackeight/the_vault_jei/TheVaultJEI.java index 6b74903..d511eb0 100644 --- a/src/main/java/dev/attackeight/the_vault_jei/TheVaultJEI.java +++ b/src/main/java/dev/attackeight/the_vault_jei/TheVaultJEI.java @@ -2,6 +2,7 @@ import com.mojang.logging.LogUtils; import net.minecraft.resources.ResourceLocation; +import net.minecraftforge.fml.ModList; import net.minecraftforge.fml.common.Mod; import org.slf4j.Logger; @@ -19,4 +20,8 @@ public static ResourceLocation rl(String path) { return new ResourceLocation(TheVaultJEI.ID, path); } + public static boolean hasWolds() { + return ModList.get().isLoaded("woldsvaults"); + } + } diff --git a/src/main/java/dev/attackeight/the_vault_jei/jei/TheVaultJEIPlugin.java b/src/main/java/dev/attackeight/the_vault_jei/jei/TheVaultJEIPlugin.java index c1f1ba1..2e9967a 100644 --- a/src/main/java/dev/attackeight/the_vault_jei/jei/TheVaultJEIPlugin.java +++ b/src/main/java/dev/attackeight/the_vault_jei/jei/TheVaultJEIPlugin.java @@ -15,9 +15,12 @@ import mezz.jei.api.registration.IRecipeCatalystRegistration; import mezz.jei.api.registration.IRecipeCategoryRegistration; import mezz.jei.api.registration.IRecipeRegistration; +import net.minecraft.client.Minecraft; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.ItemLike; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.ModList; import javax.annotation.ParametersAreNonnullByDefault; @@ -84,6 +87,9 @@ public void registerRecipes(IRecipeRegistration registration) { registration.addRecipes(MOD_BOX, getModBoxLoot()); registration.addRecipes(BOUNTY_REWARDS, getBountyRewards()); registration.addRecipes(ALTAR_INGREDIENTS, getAltarIngredients()); + if (TheVaultJEI.hasWolds()) { + + } } @Override