GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
    event.create('extractinator')
        .category('extractor')
        .setEUIO('in')
        .setMaxIOSize(2, 8, 0, 0)
        .setSlotOverlay(false, false, GuiTextures.COMPRESSOR_OVERLAY)
        .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
        .setSound(GTSoundEntries.ELECTROLYZER)
})

GTCEuStartupEvents.registry('gtceu:machine', event => {
    event.create('electric_extractinator', 'simple') 
        .tiers(GTValues.MV, GTValues.HV, GTValues.EV, GTValues.IV, GTValues.MAX)
        .definition((tier, builder) =>
            builder
        .langValue(GTValues.VLVH[tier] + " Electric Extractinator")
        .recipeType('extractinator')
        .workableTieredHullRenderer('gtceu:block/machines/extractinator')
        )
})




const $ParallelHatchPartMachine = Java.loadClass('com.gregtechceu.gtceu.common.machine.multiblock.part.ParallelHatchPartMachine')

// Parallel Hatches
GTCEuStartupEvents.registry('gtceu:machine', event => {
    event.create("uhv_parallel_hatch", "custom")
    .tiers(GTValues.UHV)
    .machine((holder, tier, t) => new $ParallelHatchPartMachine(holder, tier))
    .definition((tier, builder) => {
        builder.rotationState(RotationState.ALL)
                .abilities(PartAbility.PARALLEL_HATCH)
                .workableTieredHullRenderer(GTCEu.id("block/machines/parallel_hatch_uhv"))
    })
    event.create("uev_parallel_hatch", "custom")
    .tiers(GTValues.UEV)
    .machine((holder, tier, t) => new $ParallelHatchPartMachine(holder, tier))
    .definition((tier, builder) => {
        builder.rotationState(RotationState.ALL)
                .abilities(PartAbility.PARALLEL_HATCH)
                .workableTieredHullRenderer(GTCEu.id("block/machines/parallel_hatch_uev"))
    })
    event.create("uiv_parallel_hatch", "custom")
    .tiers(GTValues.UIV)
    .machine((holder, tier, t) => new $ParallelHatchPartMachine(holder, tier))
    .definition((tier, builder) => {
        builder.rotationState(RotationState.ALL)
                .abilities(PartAbility.PARALLEL_HATCH)
                .workableTieredHullRenderer(GTCEu.id("block/machines/parallel_hatch_uiv"))
    })
    event.create("uxv_parallel_hatch", "custom")
    .tiers(GTValues.UXV)
    .machine((holder, tier, t) => new $ParallelHatchPartMachine(holder, tier))
    .definition((tier, builder) => {
        builder.rotationState(RotationState.ALL)
                .abilities(PartAbility.PARALLEL_HATCH)
                .workableTieredHullRenderer(GTCEu.id("block/machines/parallel_hatch_uxv"))
    })
    event.create("opv_parallel_hatch", "custom")
    .tiers(GTValues.OpV)
    .machine((holder, tier, t) => new $ParallelHatchPartMachine(holder, tier))
    .definition((tier, builder) => {
        builder.rotationState(RotationState.ALL)
                .abilities(PartAbility.PARALLEL_HATCH)
                .workableTieredHullRenderer(GTCEu.id("block/machines/parallel_hatch_opv"))
    })

})