diff --git a/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/api/recipe/v1/ingredient/CustomIngredientSerializer.java b/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/api/recipe/v1/ingredient/CustomIngredientSerializer.java index e41680b6fb..6f0b5ae333 100644 --- a/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/api/recipe/v1/ingredient/CustomIngredientSerializer.java +++ b/fabric-recipe-api-v1/src/main/java/net/fabricmc/fabric/api/recipe/v1/ingredient/CustomIngredientSerializer.java @@ -20,6 +20,7 @@ import org.jetbrains.annotations.Nullable; import net.minecraft.network.PacketByteBuf; +import net.minecraft.recipe.Ingredient; import net.minecraft.util.Identifier; import net.fabricmc.fabric.impl.recipe.ingredient.CustomIngredientImpl; @@ -54,6 +55,15 @@ static CustomIngredientSerializer get(Identifier identifier) { */ Identifier getIdentifier(); + /** + * {@return the codec}. + * + *

Codecs are used to read the ingredient from the recipe JSON files. + * If the custom ingredient + * + * @see Ingredient#ALLOW_EMPTY_CODEC + * @see Ingredient#DISALLOW_EMPTY_CODEC + */ Codec getCodec(boolean allowEmpty); /**