Configurable Mill Ticks (BWM) (#762)

* It's building!

* Update deps

* Fix warnings

* Configurable Mill Ticks P.3 (CrT)
This commit is contained in:
Colin Wong 2021-01-16 15:39:20 -06:00 committed by GitHub
parent b5465034fc
commit 3213f31f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {