Skip to content

Commit

Permalink
Change to a static method
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfieboy09 committed Nov 5, 2024
1 parent 15aa7dc commit eebb431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ public void save(RecipeOutput output, ResourceLocation id) {
DiskAssemblerRecipe recipe = new DiskAssemblerRecipe(this.diskPort, this.diskCasing, this.screws, this.extras, this.energyCost, this.timeInTicks, this.result);
output.accept(id, recipe, advancement.build(id.withPrefix("recipes/")));
}

public static DiskAssemblerBuilder create(Ingredient diskPort, Ingredient diskCasing, Ingredient screws, List<Ingredient> extras, int energyCost, int timeInTicks, ItemStack result) {
return new DiskAssemblerBuilder(diskPort, diskCasing, screws, extras, energyCost, timeInTicks, result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public QSRecipeProvider(PackOutput output, CompletableFuture<HolderLookup.Provid

@Override
protected void buildRecipes(@NotNull RecipeOutput output) {
new DiskAssemblerBuilder(
DiskAssemblerBuilder.create(
Ingredient.of(QSItems.ITEM_PORT),
Ingredient.of(QSItems.STEEL_CASING),
Ingredient.of(QSItems.STEEL_SCREW),
Expand Down

0 comments on commit eebb431

Please sign in to comment.