-
Notifications
You must be signed in to change notification settings - Fork 754
/
BowRecipe.java
38 lines (32 loc) · 961 Bytes
/
BowRecipe.java
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
package tconstruct.tools;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import tconstruct.library.crafting.ToolRecipe;
import tconstruct.library.tools.ToolCore;
public class BowRecipe extends ToolRecipe
{
public BowRecipe(Item head, Item handle, ToolCore tool)
{
super(head, handle, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, ToolCore tool)
{
super(head, handle, accessory, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, Item extra, ToolCore tool)
{
super(head, handle, accessory, extra, tool);
}
@Override
public boolean validHead (Item input)
{
for (Item part : headList)
{
if (part == input)
return true;
if (toolRod != null && part == toolRod && (input == Items.stick || input == Items.bone))
return true;
}
return false;
}
}