-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathSaw.java
More file actions
54 lines (42 loc) · 1.38 KB
/
Copy pathSaw.java
File metadata and controls
54 lines (42 loc) · 1.38 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
54
package com.blamejared.compat.betterwithmods;
import betterwithmods.common.BWRegistry;
import com.blamejared.compat.betterwithmods.base.blockrecipes.SawBuilder;
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;
import javax.annotation.Nonnull;
@ZenClass("mods.betterwithmods.Saw")
@ModOnly("betterwithmods")
@ZenRegister
public class Saw {
public static SawBuilder INSTANCE = new SawBuilder(() -> BWRegistry.WOOD_SAW, "Saw");
@ZenMethod
public static SawBuilder builder() {
return INSTANCE;
}
@ZenMethod
public static void add(@Nonnull IIngredient input, IItemStack[] output) {
builder().buildRecipe(input, output).build();
}
@Deprecated
@ZenMethod
public static void add(IItemStack[] output, @NotNull IIngredient input) {
add(input, output);
}
@ZenMethod
public static void remove(IItemStack input) {
INSTANCE.removeRecipe(input);
}
@ZenMethod
public static void remove(IItemStack[] outputs) {
INSTANCE.removeRecipe(outputs);
}
@ZenMethod
public static void removeAll() {
builder().removeAll();
}
}