-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathMill.java
More file actions
53 lines (42 loc) · 1.48 KB
/
Mill.java
File metadata and controls
53 lines (42 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.blamejared.compat.betterwithmods;
import betterwithmods.common.BWRegistry;
import com.blamejared.compat.betterwithmods.base.bulkrecipes.MillBuilder;
import crafttweaker.annotations.ModOnly;
import crafttweaker.annotations.ZenRegister;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.IItemStack;
import stanhebben.zenscript.annotations.NotNull;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
@ZenClass("mods.betterwithmods.Mill")
@ModOnly("betterwithmods")
@ZenRegister
public class Mill {
public static MillBuilder INSTANCE = new MillBuilder(() -> BWRegistry.MILLSTONE, "Mill");
@ZenMethod
public static MillBuilder builder() {
return INSTANCE;
}
@ZenMethod
public static void addRecipe(IIngredient[] inputs, IItemStack[] outputs) {
INSTANCE.buildRecipe(inputs, outputs).build();
}
@Deprecated
@ZenMethod
public static void add(IItemStack output, IItemStack secondaryOutput, @NotNull IIngredient[] inputs) {
addRecipe(inputs, new IItemStack[]{output, secondaryOutput});
}
@Deprecated
@ZenMethod
public static void add(IItemStack output, @NotNull IIngredient[] inputs) {
addRecipe(inputs, new IItemStack[]{output});
}
@ZenMethod
public static void remove(IItemStack[] output) {
INSTANCE.removeRecipe(output);
}
@ZenMethod
public static void removeAll() {
builder().removeAll();
}
}