Add config for #1478

This commit is contained in:
modmuss50 2018-04-12 14:03:34 +01:00
parent b8514a998f
commit 8bb7efcc77
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -36,16 +36,23 @@ import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.api.recipe.RecipeHandler;
import reborncore.common.registration.RebornRegistry;
import reborncore.common.registration.impl.ConfigRegistry;
import reborncore.common.util.ItemUtils;
import techreborn.api.recipe.machines.IndustrialSawmillRecipe;
import techreborn.items.ItemDusts;
import techreborn.lib.ModInfo;
import javax.annotation.Nonnull;
import java.security.InvalidParameterException;
@RebornRegistry(modID = ModInfo.MOD_ID)
public class IndustrialSawmillRecipes extends RecipeMethods {
static FluidStack WATER = new FluidStack(FluidRegistry.WATER, 1000);
@ConfigRegistry(config = "recipes", category = "sawmill", key = "plankCount", comment = "Number of planks the saw mill will ouput")
public static int plankCount = 4;
public static void init() {
InventoryCrafting inventoryCrafting = new InventoryCrafting(new Container() {
@Override
@ -94,6 +101,7 @@ public class IndustrialSawmillRecipes extends RecipeMethods {
}
public static void addRecipe(ItemStack log, ItemStack plank) {
plank.setCount(plankCount);
register(log, WATER, 100, 128, plank, ItemDusts.getDustByName("sawDust", 3), getStack(Items.PAPER, 1));
}