Files
kubejs-thaumcraft/src/main/java/tckubejsbridge/kubejs/InfusionRecipeKJS.java
T
2026-08-08 02:52:39 +08:00

29 lines
996 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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<ItemStack> components = getValue(TCKubeJSPlugin.COMPONENTS);
TCRecipeBridge.registerInfusion(research, result, instability, aspects, central,
components == null ? new ItemStack[0] : components.toArray(new ItemStack[0]));
}
}