From 71e20e7151e461e6ac542d717c54477d11fb9f4e Mon Sep 17 00:00:00 2001 From: LocusAzzurro Date: Sat, 28 Oct 2023 22:10:28 +0200 Subject: [PATCH] :sparkles: JEI woodworking integration Signed-off-by: LocusAzzurro --- .../client/integration/jei/WoodworkingRecipeCategory.java | 5 ----- .../ultramarine/data/recipe/WoodworkingRecipe.java | 7 ++----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/voxelutopia/ultramarine/client/integration/jei/WoodworkingRecipeCategory.java b/src/main/java/com/voxelutopia/ultramarine/client/integration/jei/WoodworkingRecipeCategory.java index be400f6b..f58d7a08 100644 --- a/src/main/java/com/voxelutopia/ultramarine/client/integration/jei/WoodworkingRecipeCategory.java +++ b/src/main/java/com/voxelutopia/ultramarine/client/integration/jei/WoodworkingRecipeCategory.java @@ -79,11 +79,6 @@ public RecipeType getRecipeType() { return WOODWORKING_RECIPE_TYPE; } - @Override - public boolean isHandled(WoodworkingRecipe recipe) { - return !recipe.isSpecial(); - } - @Override public void setRecipe(IRecipeLayoutBuilder builder, WoodworkingRecipe recipe, IFocusGroup focuses) { builder.addSlot(RecipeIngredientRole.INPUT, 1, 9) diff --git a/src/main/java/com/voxelutopia/ultramarine/data/recipe/WoodworkingRecipe.java b/src/main/java/com/voxelutopia/ultramarine/data/recipe/WoodworkingRecipe.java index aa99993f..fb2e6423 100644 --- a/src/main/java/com/voxelutopia/ultramarine/data/recipe/WoodworkingRecipe.java +++ b/src/main/java/com/voxelutopia/ultramarine/data/recipe/WoodworkingRecipe.java @@ -4,6 +4,7 @@ import com.voxelutopia.ultramarine.Ultramarine; import com.voxelutopia.ultramarine.data.registry.RecipeSerializerRegistry; import com.voxelutopia.ultramarine.data.registry.RecipeTypeRegistry; +import net.minecraft.core.NonNullList; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.GsonHelper; @@ -14,6 +15,7 @@ import net.minecraftforge.registries.ForgeRegistries; import javax.annotation.Nullable; +import java.util.List; public class WoodworkingRecipe extends SingleItemRecipe { @@ -48,11 +50,6 @@ public ItemStack getResultItem() { return result.copy(); } - @Override - public boolean isSpecial() { - return true; - } - @Override public ResourceLocation getId() { return id;