Skip to content

Commit

Permalink
feat: ✨ Added a bit of support for finer shaped recipe results defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
P3pp3rF1y committed Jan 4, 2025
1 parent fb90e37 commit 2171fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false

mod_id=sophisticatedcore
mod_group_id=sophisticatedcore
mod_version=1.0.7
mod_version=1.0.8
sonar_project_key=sophisticatedcore:SophisticatedCore
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedCore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public static ShapeBasedRecipeBuilder shaped(ItemStack stack) {
return shaped(stack.getItem(), stack.getTag(), RecipeSerializer.SHAPED_RECIPE, stack.getCount());
}

public static ShapeBasedRecipeBuilder shaped(ItemStack result, RecipeSerializer<?> serializer) {
return new ShapeBasedRecipeBuilder(result.getItem(), result.getTag(), serializer, 1);
}

public ShapeBasedRecipeBuilder define(Character symbol, TagKey<Item> tagIn) {
return define(symbol, Ingredient.of(tagIn));
}
Expand Down

0 comments on commit 2171fac

Please sign in to comment.