package tckubejsbridge.kubejs; import net.minecraft.world.item.ItemStack; import thaumcraft.api.aspects.AspectList; import java.util.List; /** * 注魔配方 KubeRecipe:event.recipes.thaumcraft.infusion(research, result, instability, aspects, central, ...components) */ public class InfusionRecipeKJS extends TCRecipeKJS { public InfusionRecipeKJS() { } @Override protected void bridgeToTC() { String research = getValue(TCKubeJSPlugin.RESEARCH); ItemStack result = getValue(TCKubeJSPlugin.RESULT); int instability = getValue(TCKubeJSPlugin.INSTABILITY); AspectList aspects = getValue(TCKubeJSPlugin.ASPECTS); ItemStack central = getValue(TCKubeJSPlugin.CENTRAL); List components = getValue(TCKubeJSPlugin.COMPONENTS); TCRecipeBridge.registerInfusion(research, result, instability, aspects, central, components == null ? new ItemStack[0] : components.toArray(new ItemStack[0])); } }