Updated Sawmill GUI and TileEntity.
This commit is contained in:
parent
33be3cf35d
commit
376f02df26
6 changed files with 306 additions and 247 deletions
|
@ -94,20 +94,16 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
|
|||
}
|
||||
|
||||
public static void addRecipe(ItemStack log, ItemStack plank) {
|
||||
register(log, getMaterial("water", Type.CELL), WATER, 100, 128, plank, ItemDusts.getDustByName("sawDust", 3), getStack(Items.PAPER, 1));
|
||||
register(log, new ItemStack(Items.WATER_BUCKET), WATER, 100, 128, plank, ItemDusts.getDustByName("sawDust", 3), getStack(Items.PAPER, 1));
|
||||
register(log, WATER, 100, 128, plank, ItemDusts.getDustByName("sawDust", 3), getStack(Items.PAPER, 1));
|
||||
}
|
||||
|
||||
static void register(ItemStack input1, ItemStack input2, FluidStack fluid, int ticks, int euPerTick, ItemStack... outputs) {
|
||||
static void register(ItemStack input1, FluidStack fluid, int ticks, int euPerTick, ItemStack... outputs) {
|
||||
if (outputs.length == 3) {
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, input2,
|
||||
fluid, outputs[0], outputs[1], outputs[2], ticks, euPerTick, false));
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, fluid, outputs[0], outputs[1], outputs[2], ticks, euPerTick, false));
|
||||
} else if (outputs.length == 2) {
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, input2,
|
||||
fluid, outputs[0], outputs[1], null, ticks, euPerTick, false));
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, fluid, outputs[0], outputs[1], null, ticks, euPerTick, false));
|
||||
} else if (outputs.length == 1) {
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, input2,
|
||||
fluid, outputs[0], null, null, ticks, euPerTick, false));
|
||||
RecipeHandler.addRecipe(new IndustrialSawmillRecipe(input1, fluid, outputs[0], null, null, ticks, euPerTick, false));
|
||||
} else {
|
||||
throw new InvalidParameterException("Invalid industrial sawmill outputs: " + outputs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue