From 3213f31f3d178c33154b5a5f52288c6ab668986e Mon Sep 17 00:00:00 2001 From: Colin Wong Date: Sat, 16 Jan 2021 15:39:20 -0600 Subject: [PATCH] Configurable Mill Ticks (BWM) (#762) * It's building! * Update deps * Fix warnings * Configurable Mill Ticks P.3 (CrT) --- .../betterwithmods/base/bulkrecipes/MillBuilder.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/blamejared/compat/betterwithmods/base/bulkrecipes/MillBuilder.java b/src/main/java/com/blamejared/compat/betterwithmods/base/bulkrecipes/MillBuilder.java index 8057f7d..afdb5a3 100644 --- a/src/main/java/com/blamejared/compat/betterwithmods/base/bulkrecipes/MillBuilder.java +++ b/src/main/java/com/blamejared/compat/betterwithmods/base/bulkrecipes/MillBuilder.java @@ -11,6 +11,7 @@ import java.util.function.Supplier; public class MillBuilder extends BulkRecipeBuilder { private String sound; + private int ticks; public MillBuilder(Supplier> registry, String name) { super(registry, name); @@ -19,7 +20,7 @@ public class MillBuilder extends BulkRecipeBuilder { @ZenMethod @Override public void build() { - addRecipe(new MillRecipe(inputs, outputs).setSound(sound).setPriority(priority)); + addRecipe(new MillRecipe(inputs, outputs).setSound(sound).setPriority(priority).setTicks(ticks)); } @ZenMethod @@ -33,6 +34,12 @@ public class MillBuilder extends BulkRecipeBuilder { this.sound = sound; return this; } + + @ZenMethod + public MillBuilder setTicks(int ticks) { + this.ticks = ticks; + return this; + } @ZenMethod public MillBuilder buildRecipe(IIngredient[] inputs, IItemStack[] outputs) {