From 01c343c012425de052cb0116f8b48a0c7fee892d Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:49:42 -0400 Subject: [PATCH] fix: allow using custom recipe categories --- gradle.properties | 2 +- .../zepalesque/zenith/api/blockset/AbstractFlowerSet.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6660b67..97dfe7b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false org.gradle.debug=false -mod_version=1.0.73 +mod_version=1.0.74 # Mod mod_id=zenith diff --git a/src/main/java/net/zepalesque/zenith/api/blockset/AbstractFlowerSet.java b/src/main/java/net/zepalesque/zenith/api/blockset/AbstractFlowerSet.java index 4cb01bb..6ed6e0f 100644 --- a/src/main/java/net/zepalesque/zenith/api/blockset/AbstractFlowerSet.java +++ b/src/main/java/net/zepalesque/zenith/api/blockset/AbstractFlowerSet.java @@ -1,6 +1,7 @@ package net.zepalesque.zenith.api.blockset; import com.mojang.datafixers.util.Pair; +import net.minecraft.data.recipes.RecipeCategory; import net.minecraft.tags.TagKey; import net.minecraft.world.effect.MobEffect; import net.minecraft.world.item.CreativeModeTab; @@ -25,9 +26,9 @@ public abstract class AbstractFlowerSet implements BlockSet { protected abstract DeferredBlock pot(DeferredRegister.Blocks registry, String id); public abstract DeferredBlock pot(); - public abstract AbstractFlowerSet craftsInto(Supplier block, CraftingMatrix shape); + public abstract AbstractFlowerSet craftsInto(Supplier block, CraftingMatrix shape, RecipeCategory category); - public abstract AbstractFlowerSet craftsIntoShapeless(int ingredientCount, Supplier result, int resultCount); + public abstract AbstractFlowerSet craftsIntoShapeless(int ingredientCount, Supplier result, int resultCount, RecipeCategory category); public abstract AbstractFlowerSet withFlowerTag(TagKey tag);