Configurable Mill Ticks (BWM) (#762)
* It's building! * Update deps * Fix warnings * Configurable Mill Ticks P.3 (CrT)
This commit is contained in:
parent
b5465034fc
commit
3213f31f3d
1 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,7 @@ import java.util.function.Supplier;
|
|||
public class MillBuilder extends BulkRecipeBuilder<MillRecipe> {
|
||||
|
||||
private String sound;
|
||||
private int ticks;
|
||||
|
||||
public MillBuilder(Supplier<CraftingManagerBulk<MillRecipe>> registry, String name) {
|
||||
super(registry, name);
|
||||
|
@ -19,7 +20,7 @@ public class MillBuilder extends BulkRecipeBuilder<MillRecipe> {
|
|||
@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<MillRecipe> {
|
|||
this.sound = sound;
|
||||
return this;
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public MillBuilder setTicks(int ticks) {
|
||||
this.ticks = ticks;
|
||||
return this;
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public MillBuilder buildRecipe(IIngredient[] inputs, IItemStack[] outputs) {
|
||||
|
|
Loading…
Reference in a new issue