aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bartworks/API/recipe/BartWorksRecipeMaps.java
blob: a367cca300ac5ccccfb2d5959506a705ee7e4fab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package bartworks.API.recipe;

import bartworks.API.modularUI.BWUITextures;
import gregtech.api.gui.modularui.GTUITextures;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.RecipeMapBackend;
import gregtech.api.recipe.RecipeMapBuilder;
import gregtech.api.recipe.maps.FuelBackend;
import gregtech.nei.formatter.FuelSpecialValueFormatter;

public class BartWorksRecipeMaps {

    public static final RecipeMap<RecipeMapBackend> bioLabRecipes = RecipeMapBuilder.of("bw.recipe.biolab")
        .maxIO(6, 2, 1, 0)
        .minInputs(1, 1)
        .useSpecialSlot()
        .slotOverlays((index, isFluid, isOutput, isSpecial) -> {
            if (isSpecial) {
                return BWUITextures.OVERLAY_SLOT_MODULE;
            }
            if (isFluid) {
                return GTUITextures.OVERLAY_SLOT_VIAL_2;
            }
            if (!isOutput) {
                switch (index) {
                    case 0:
                        return BWUITextures.OVERLAY_SLOT_DISH;
                    case 1:
                        return BWUITextures.OVERLAY_SLOT_DNA_FLASK;
                    case 2:
                        return GTUITextures.OVERLAY_SLOT_CIRCUIT;
                    case 3:
                        return GTUITextures.OVERLAY_SLOT_MOLECULAR_1;
                    case 4:
                        return GTUITextures.OVERLAY_SLOT_MOLECULAR_2;
                    case 5:
                        return GTUITextures.OVERLAY_SLOT_DATA_ORB;
                }
            }
            return null;
        })
        .progressBar(GTUITextures.PROGRESSBAR_ARROW_MULTIPLE)
        .logo(BWUITextures.PICTURE_BW_LOGO_47X21)
        .logoSize(47, 21)
        .logoPos(125, 3)
        .disableRegisterNEI()
        .build();
    public static final RecipeMap<RecipeMapBackend> bacterialVatRecipes = RecipeMapBuilder.of("bw.recipe.BacteriaVat")
        .maxIO(6, 2, 1, 1)
        .minInputs(0, 1)
        .useSpecialSlot()
        .specialSlotSensitive()
        .progressBar(GTUITextures.PROGRESSBAR_ARROW_MULTIPLE)
        .frontend(BacterialVatFrontend::new)
        .disableRegisterNEI()
        .build();
    public static final RecipeMap<FuelBackend> acidGenFuels = RecipeMapBuilder.of("bw.fuels.acidgens", FuelBackend::new)
        .maxIO(1, 1, 0, 0)
        .neiSpecialInfoFormatter(FuelSpecialValueFormatter.INSTANCE)
        .build();
    public static final RecipeMap<RecipeMapBackend> circuitAssemblyLineRecipes = RecipeMapBuilder.of("bw.recipe.cal")
        .maxIO(6, 1, 1, 0)
        .minInputs(1, 1)
        .useSpecialSlot()
        .specialSlotSensitive()
        .progressBar(GTUITextures.PROGRESSBAR_CIRCUIT_ASSEMBLER)
        .build();
    public static final RecipeMap<RecipeMapBackend> radioHatchRecipes = RecipeMapBuilder.of("bw.recipe.radhatch")
        .maxIO(1, 0, 0, 0)
        .minInputs(1, 0)
        .slotOverlays((index, isFluid, isOutput, isSpecial) -> BWUITextures.OVERLAY_SLOT_ROD)
        .logo(BWUITextures.PICTURE_BW_LOGO_47X21)
        .logoSize(47, 21)
        .logoPos(118, 55)
        .dontUseProgressBar()
        .addSpecialTexture(74, 20, 29, 27, BWUITextures.PICTURE_RADIATION)
        .frontend(RadioHatchFrontend::new)
        .build();
    public static final RecipeMap<RecipeMapBackend> electricImplosionCompressorRecipes = RecipeMapBuilder
        .of("gt.recipe.electricimplosioncompressor")
        .maxIO(6, 2, 1, 1)
        .slotOverlays(
            (index, isFluid, isOutput, isSpecial) -> !isFluid && !isOutput ? GTUITextures.OVERLAY_SLOT_IMPLOSION : null)
        .progressBar(GTUITextures.PROGRESSBAR_COMPRESS)
        .build();
    public static final RecipeMap<RecipeMapBackend> htgrFakeRecipes = RecipeMapBuilder.of("bw.recipe.htgr")
        .maxIO(1, 1, 0, 0)
        .build();
}