Package thaumic.tinkerer.common.registry

Source Code of thaumic.tinkerer.common.registry.ThaumicTinkererInfusionRecipe

package thaumic.tinkerer.common.registry;

import net.minecraft.item.ItemStack;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.common.config.ConfigResearch;

public class ThaumicTinkererInfusionRecipe extends ThaumicTinkererRecipe {
  private final String name;
  private final String research;
  private final Object output;
  private final int instability;
  private final AspectList aspects;
  private final ItemStack input;
  private final ItemStack[] stuff;

  public ThaumicTinkererInfusionRecipe(String name, String research, Object output, int instability, AspectList aspects, ItemStack input, ItemStack... stuff) {

    this.name = name;
    this.research = research;
    this.output = output;
    this.instability = instability;
    this.aspects = aspects;
    this.input = input;
    this.stuff = stuff;
  }

  public ThaumicTinkererInfusionRecipe(String name, Object output, int instability, AspectList aspects, ItemStack input, ItemStack... stuff) {
    this(name, name, output, instability, aspects, input, stuff);
  }

  @Override
  public void registerRecipe() {
    InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe(research, output, instability, aspects, input, stuff);
    ConfigResearch.recipes.put(name, recipe);
  }
}
TOP

Related Classes of thaumic.tinkerer.common.registry.ThaumicTinkererInfusionRecipe

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.