From d8a737faaba655253666b343c052ea2ce61221ca Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Sat, 24 Dec 2022 04:12:36 +0800 Subject: add NEI handler for ic2 fuel rods (#1580) * add NEI handler for ic2 fuel rods Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix typo Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * rename variable to cover up the original intention Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> --- .../api/interfaces/internal/IGT_RecipeAdder.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/main/java/gregtech/api/interfaces') diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java index 2dd5ab9fa0..bcb5cc5402 100644 --- a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java +++ b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java @@ -1,5 +1,6 @@ package gregtech.api.interfaces.internal; +import gregtech.api.util.GT_Recipe; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidStack; @@ -1323,4 +1324,32 @@ public interface IGT_RecipeAdder { int aDuration, int aEUt, int aSpecialValue); + + /** + * Add a breeder cell. + * @param input raw stack. should be undamaged. + * @param output breed output + * @param heatMultiplier bonus progress per neutron pulse per heat step + * @param heatStep divisor for hull heat + * @param reflector true if also acts as a neutron reflector, false otherwise. + * @param requiredPulses progress required to complete breeding + * @return added fake recipe + */ + GT_Recipe addIC2ReactorBreederCell( + ItemStack input, ItemStack output, boolean reflector, int heatStep, int heatMultiplier, int requiredPulses); + + /** + * Add a fuel cell. + * @param input raw stack. should be undamaged. + * @param output depleted stack + * @param aMox true if has mox behavior, false if uranium behavior. + * @param aHeat inherent heat output multiplier of the fuel material. should not add the extra heat from being + * a multi-cell! + * @param aEnergy inherent energy output multiplier of the fuel material. should not add the extra energy from + * being a multi-cell! + * @param aCells cell count + * @return added fake recipe + */ + GT_Recipe addIC2ReactorFuelCell( + ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy, int aCells); } -- cgit