From 5331aa8f972e541302b6f1d722f409bfd63cfaea Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Tue, 9 Sep 2025 17:44:37 -0400 Subject: [PATCH] chore: remove unused method --- .../magicmod/recipe/MagicShapedRecipe.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/uncreativebunch/magicmod/recipe/MagicShapedRecipe.java b/src/main/java/com/uncreativebunch/magicmod/recipe/MagicShapedRecipe.java index eb2d3c4..b86dd79 100644 --- a/src/main/java/com/uncreativebunch/magicmod/recipe/MagicShapedRecipe.java +++ b/src/main/java/com/uncreativebunch/magicmod/recipe/MagicShapedRecipe.java @@ -21,11 +21,6 @@ import java.util.Optional; public record MagicShapedRecipe(Ingredient coreIngredient, Ingredient materialIngredient, Ingredient gripIngredient, ItemStack output, Identifier id) implements Recipe { - - public boolean fits(int width, int height) { - return true; - } - @Override public boolean matches(MagicShapedInput input, World world) { if (input.stacks().size() < 2) return false; @@ -87,8 +82,7 @@ public record MagicShapedRecipe(Ingredient coreIngredient, Ingredient materialIn // Type definition public static class Type implements RecipeType { - private Type() { - } + private Type() { } public static final Type INSTANCE = new Type(); public static final String ID = "magic_crafting"; @@ -129,12 +123,8 @@ public record MagicShapedRecipe(Ingredient coreIngredient, Ingredient materialIn return CODEC; } - /** - * Gets the packet codec for this serializer. This determines how the recipe is parsed from packets. - * - * @return The packet codec for this serializer. - */ @Override + @Deprecated public PacketCodec packetCodec() { return PACKET_CODEC; }