/**
 * Re-tiers the PTERB to late LuV - script 1 of 2.
 * - Replaces UV components with LuV components.
 */
ServerEvents.recipes(event => {
    event.remove({ id: "gtceu:assembly_line/pterb" })
    event.remove({ id: "gtceu:research_station/1x_gtceu_active_transformer" })

    event.recipes.gtceu.assembly_line("pterb")
        .itemInputs("gtceu:active_transformer")
        .itemInputs("32x gtceu:europium_plate")
        .itemInputs("8x gtceu:luv_sensor")
        .itemInputs("8x gtceu:luv_emitter")
        .itemInputs("4x gtceu:luv_field_generator")
        .itemInputs("2x #gtceu:circuits/zpm")
        .itemInputs("4x gtceu:europium_large_fluid_pipe")
        .itemInputs("8x gtceu:niobium_titanium_quadruple_cable")
        .itemInputs("8x gtceu:normal_laser_pipe")
        .inputFluids("gtceu:advanced_soldering_alloy 2304")
        .EUt(GTValues.VA[GTValues.ZPM])
        .duration(1200)
        .addMaterialInfo(true)
        .itemOutputs("gtmutils:pterb_machine")
        ["scannerResearch(java.util.function.UnaryOperator)"](b => b
            .researchStack("gtceu:active_transformer")
            .duration(2400)
            .EUt(7680)
        )
    // Same as above but with Living Soldering Alloy
    event.recipes.gtceu.assembly_line("pterb/living_soldering_alloy")
        .itemInputs("gtceu:active_transformer")
        .itemInputs("32x gtceu:europium_plate")
        .itemInputs("8x gtceu:luv_sensor")
        .itemInputs("8x gtceu:luv_emitter")
        .itemInputs("4x gtceu:luv_field_generator")
        .itemInputs("2x #gtceu:circuits/zpm")
        .itemInputs("4x gtceu:europium_large_fluid_pipe")
        .itemInputs("8x gtceu:niobium_titanium_quadruple_cable")
        .itemInputs("8x gtceu:normal_laser_pipe")
        .inputFluids("gtceu:living_soldering_alloy 1152")
        .EUt(GTValues.VA[GTValues.ZPM])
        .duration(1200)
        .addMaterialInfo(true)
        .itemOutputs("gtmutils:pterb_machine")
        ["scannerResearch(java.util.function.UnaryOperator)"](b => b
            .researchStack("gtceu:active_transformer")
            .duration(2400)
            .EUt(7680)
        )
})
