From 801422cbb79b2fb8802f07fc635ec4bbcd9ac02d Mon Sep 17 00:00:00 2001 From: Kat Gaea Date: Tue, 5 Mar 2024 12:28:53 +0000 Subject: [PATCH] feat: better JEI --- build.gradle | 3 ++- gradle.properties | 2 +- .../dev/katcodes/occultcreate/compat/OccultCreationsJEI.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ef859a2..76eaffc 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ version = mod_version group = mod_group_id base { - archivesName = mod_id + archivesName = "${mod_id}-${minecraft_version}" } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. @@ -245,6 +245,7 @@ tasks.named('jar', Jar).configure { // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' + } // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing: diff --git a/gradle.properties b/gradle.properties index 8ac9d4b..61a4324 100644 --- a/gradle.properties +++ b/gradle.properties @@ -77,7 +77,7 @@ mod_name=Occult Creations # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=1.0.0 +mod_version=1.0.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/katcodes/occultcreate/compat/OccultCreationsJEI.java b/src/main/java/dev/katcodes/occultcreate/compat/OccultCreationsJEI.java index 88eb42b..3de92de 100644 --- a/src/main/java/dev/katcodes/occultcreate/compat/OccultCreationsJEI.java +++ b/src/main/java/dev/katcodes/occultcreate/compat/OccultCreationsJEI.java @@ -77,7 +77,7 @@ public void registerCategories(IRecipeCategoryRegistration registration) { private static @NotNull CreateRecipeCategory getSpiritFireRecipeCreateRecipeCategory(Supplier> recipesSupplier) { CreateRecipeCategory.Info info = new CreateRecipeCategory.Info<>( new mezz.jei.api.recipe.RecipeType<>(new ResourceLocation(MODID,"spirit_fire_blasting"), SpiritFireRecipe.class), - Components.translatable("occult_creations.recipe.spirit_fire_blasting" ), new EmptyBackground(178,72), new DoubleItemIcon(() -> new ItemStack(AllItems.PROPELLER.get()), () -> new ItemStack(OccultismBlocks.SPIRIT_FIRE.get())), recipesSupplier, new ArrayList<>(){ { add(ProcessingViaFanCategory.getFan("spirit_fire_blasting"));}}); + Components.translatable("occult_creations.recipe.spirit_fire_blasting" ), new EmptyBackground(178,72), new DoubleItemIcon(() -> new ItemStack(AllItems.PROPELLER.get()), () -> new ItemStack(OccultismBlocks.SPIRIT_CAMPFIRE.get())), recipesSupplier, new ArrayList<>(){ { add(ProcessingViaFanCategory.getFan("spirit_fire_blasting"));}}); return new FanSpiritingCategory(info); }