Skip to content

Commit

Permalink
Optical SoC , and some recipe of ICD
Browse files Browse the repository at this point in the history
  • Loading branch information
Nxer committed Oct 31, 2023
1 parent e21e0ef commit 8954ffa
Show file tree
Hide file tree
Showing 16 changed files with 559 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public enum GTCMItemList implements IItemContainer {

// Items
TestItem0,

SpaceWarper,
OpticalSOC,

// Blocks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,13 @@ public static void registryItems() {

}

// spotless:off
public static void registryItemContainers() {
GTCMItemList.TestItem0.set(
initItem01("Test Item 0", 0, new String[] { texter("A test item, no use.", "tooltips.TestItem0.line1") }));
GTCMItemList.SpaceWarper.set(
initItem01(
"Space Warper",
1,
new String[] {
texter(EnumChatFormatting.DARK_BLUE + "Power of gravitation !", "tooltips.SpaceWarper.line1") }));

GTCMItemList.TestItem0.set(initItem01("Test Item 0", 0, new String[] { texter("A test item, no use.", "tooltips.TestItem0.line1") }));
GTCMItemList.SpaceWarper.set(initItem01("Space Warper", 1, new String[] {texter(EnumChatFormatting.DARK_BLUE + "Power of gravitation !", "tooltips.SpaceWarper.line1") }));
GTCMItemList.OpticalSOC.set(initItem01("Optical SoC", 2, new String[]{ texter("These Photons have their own mind.","tooltips.OpticalSOC.line1")}));
}

// spotless:on
public static void registry() {
registryItems();
registryItemContainers();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
package com.GTNH_Community.gtnhcommunitymod.loader;

import static com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe.GTCMMachineRecipePool.loadGTCMMachineRecipes;
import com.GTNH_Community.gtnhcommunitymod.recipe.RecipePool;
import com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe.ChemicalReactorRecipePool;
import com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe.GTCMMachineRecipePool;
import com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe.IntensifyChemicalDistorterRecipePool;
import com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe.PreciseHighEnergyPhotonicQuantumMasterRecipePool;

public class RecipeLoader {

public static void loadRecipes() {
loadGTCMMachineRecipes();
RecipePool[] recipePools = new RecipePool[] { new GTCMMachineRecipePool(),
new IntensifyChemicalDistorterRecipePool(), new ChemicalReactorRecipePool(),
new PreciseHighEnergyPhotonicQuantumMasterRecipePool() };

for (RecipePool recipePool : recipePools) {
recipePool.loadRecipes();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.GTNH_Community.gtnhcommunitymod.recipe;

public interface RecipePool {

void loadRecipes();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe;

import static gregtech.api.enums.TierEU.RECIPE_ZPM;

import com.GTNH_Community.gtnhcommunitymod.recipe.RecipePool;

import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;

public class ChemicalReactorRecipePool implements RecipePool {

@Override
public void loadRecipes() {

final GT_Recipe.GT_Recipe_Map LCR = GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes;

GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(21),
Materials.Chrome.getDust(32),
Materials.Saltpeter.getDust(64),
Materials.Saltpeter.getDust(64),
Materials.Saltpeter.getDust(32))
.fluidInputs(Materials.Oxygen.getGas(96 * 1000), Materials.Water.getFluid(16 * 1000))
.itemOutputs(
Materials.Potassiumdichromate.getDust(64),
Materials.Potassiumdichromate.getDust(64),
Materials.Potassiumdichromate.getDust(48))
.fluidOutputs(Materials.NitricAcid.getFluid(32 * 1000))
.noOptimize()
.eut(RECIPE_ZPM)
.duration(64)
.addTo(LCR);

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe;

import static com.GTNH_Community.gtnhcommunitymod.common.GTCMItemList.OpticalSOC;
import static com.GTNH_Community.gtnhcommunitymod.common.GTCMItemList.SpaceWarper;
import static com.dreammaster.gthandler.CustomItemList.Transformer_MAX_UXV;
import static com.dreammaster.gthandler.CustomItemList.Transformer_UIV_UEV;
Expand Down Expand Up @@ -36,6 +37,7 @@
import com.GTNH_Community.gtnhcommunitymod.common.machine.recipeMap.GTCMRecipe;
import com.GTNH_Community.gtnhcommunitymod.common.material.MaterialPool;
import com.GTNH_Community.gtnhcommunitymod.loader.MachineLoader;
import com.GTNH_Community.gtnhcommunitymod.recipe.RecipePool;
import com.dreammaster.gthandler.CustomItemList;
import com.elisis.gtnhlanth.common.register.WerkstoffMaterialPool;
import com.github.bartimaeusnek.bartworks.common.loaders.ItemRegistry;
Expand All @@ -51,13 +53,17 @@
import gregtech.api.interfaces.IItemContainer;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import ic2.core.Ic2Items;

public class GTCMMachineRecipePool {
public class GTCMMachineRecipePool implements RecipePool {

public static void loadGTCMMachineRecipes() {
GTNHCommunityMod.LOG.info("loadGTCMMachineRecipes");
public GTCMMachineRecipePool() {}

@Override
public void loadRecipes() {
GTNHCommunityMod.LOG.info("GTCMMachineRecipePool.loadRecipes");

Fluid solderIndAlloy = FluidRegistry.getFluid("molten.indalloy140");

Expand Down Expand Up @@ -524,5 +530,20 @@ public static void loadGTCMMachineRecipes() {
.addTo(GTCMRecipe.instance.PreciseHighEnergyPhotonicQuantumMasterRecipes);

// endregion

// Optical Soc Circuit Assembly Line
GT_Values.RA.stdBuilder()
.itemInputs(
ItemList.Circuit_Board_Optical.get(16),
OpticalSOC.get(1),
com.github.technus.tectech.thing.CustomItemList.DATApipe.get(32),
GT_OreDictUnificator.get(OrePrefixes.stick, Materials.EnrichedHolmium, 64))
.fluidInputs(new FluidStack(solderPlasma, 144 * 2))
.itemOutputs(ItemList.Circuit_OpticalProcessor.get(16))
.noFluidOutputs()
.eut(9830400)
.duration(32 * 20)
.addTo(GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes);

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
package com.GTNH_Community.gtnhcommunitymod.recipe.machineRecipe;

import static gregtech.api.enums.TierEU.RECIPE_HV;
import static gregtech.api.enums.TierEU.RECIPE_IV;
import static gregtech.api.enums.TierEU.RECIPE_UV;

import com.GTNH_Community.gtnhcommunitymod.common.machine.recipeMap.GTCMRecipe;
import com.GTNH_Community.gtnhcommunitymod.recipe.RecipePool;

import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;

public class IntensifyChemicalDistorterRecipePool implements RecipePool {

@Override
public void loadRecipes() {

final GT_Recipe.GT_Recipe_Map ICD = GTCMRecipe.instance.IntensifyChemicalDistorterRecipes;

// PBI
GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(19),
Materials.Potassiumdichromate.getDust(16),
Materials.Copper.getDust(16),
Materials.Zinc.getDust(64),
Materials.Zinc.getDust(64),
Materials.Zinc.getDust(16))
.fluidInputs(
Materials.Dimethylbenzene.getFluid(144000),
Materials.Chlorobenzene.getFluid(288000),
Materials.SulfuricAcid.getFluid(144000),
Materials.Hydrogen.getGas(1728000),
Materials.Nitrogen.getGas(576000),
Materials.Oxygen.getGas(2016000))
.noItemOutputs()
.fluidOutputs(Materials.Polybenzimidazole.getMolten(144000), Materials.HydrochloricAcid.getFluid(288000))
.noOptimize()
.specialValue(9900)
.eut(RECIPE_UV)
.duration(96)
.addTo(ICD);

// Silicone
GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(11),
Materials.Sulfur.getDust(1),
Materials.Silicon.getDust(3),
Materials.Carbon.getDust(6))
.fluidInputs(Materials.Hydrogen.getGas(12000), Materials.Water.getFluid(3000))
.noItemOutputs()
.fluidOutputs(Materials.Silicone.getMolten(1296))
.noOptimize()
.specialValue(400)
.eut(96)
.duration(128)
.addTo(ICD);

GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(19),
Materials.Sulfur.getDust(64),
Materials.Silicon.getDust(64),
Materials.Silicon.getDust(64),
Materials.Silicon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64))
.fluidInputs(Materials.Hydrogen.getGas(12000 * 64), Materials.Water.getFluid(3000 * 64))
.noItemOutputs()
.fluidOutputs(Materials.Silicone.getMolten(1296 * 64))
.noOptimize()
.specialValue(800)
.eut(96)
.duration(128 * 64)
.addTo(ICD);

// Polyphenylene sulfide
GT_Values.RA.stdBuilder()
.itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Sulfur.getDust(1))
.fluidInputs(Materials.Benzene.getFluid(1000))
.noItemOutputs()
.fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(1500), Materials.Hydrogen.getGas(2000))
.noOptimize()
.specialValue(400)
.eut(RECIPE_HV)
.duration(128)
.addTo(ICD);

GT_Values.RA.stdBuilder()
.itemInputs(GT_Utility.getIntegratedCircuit(19), Materials.Sulfur.getDust(64))
.fluidInputs(Materials.Benzene.getFluid(64000))
.noItemOutputs()
.fluidOutputs(Materials.PolyphenyleneSulfide.getMolten(96000), Materials.Hydrogen.getGas(128000))
.noOptimize()
.specialValue(800)
.eut(RECIPE_HV)
.duration(128 * 64)
.addTo(ICD);

// Agar
GT_Values.RA.stdBuilder()
.itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.MeatRaw.getDust(8))
.fluidInputs(
Materials.SulfuricAcid.getFluid(4000),
Materials.PhosphoricAcid.getFluid(1000),
Materials.Water.getFluid(8000))
.itemOutputs(GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 8, 2))
.noFluidOutputs()
.noOptimize()
.specialValue(9900)
.eut(RECIPE_IV)
.duration(256)
.addTo(ICD);

GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(19),
Materials.MeatRaw.getDust(64),
Materials.MeatRaw.getDust(64),
Materials.MeatRaw.getDust(64),
Materials.MeatRaw.getDust(64),
Materials.MeatRaw.getDust(64),
Materials.MeatRaw.getDust(64))
.fluidInputs(
Materials.SulfuricAcid.getFluid(4000 * 64),
Materials.PhosphoricAcid.getFluid(64000),
Materials.Water.getFluid(8000 * 64))
.itemOutputs(
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2),
GT_ModHandler.getModItem("dreamcraft", "GTNHBioItems", 64, 2))
.noFluidOutputs()
.noOptimize()
.specialValue(10800)
.eut(RECIPE_IV)
.duration(256 * 48)
.addTo(ICD);

// PTFE
GT_Values.RA.stdBuilder()
.itemInputs(GT_Utility.getIntegratedCircuit(11), Materials.Carbon.getDust(2 * 9))
.fluidInputs(Materials.Fluorine.getGas(4000 * 9), Materials.Oxygen.getGas(125000))
.noItemOutputs()
.fluidOutputs(Materials.Polytetrafluoroethylene.getMolten(36000))
.noOptimize()
.specialValue(1800)
.eut(RECIPE_IV)
.duration(20 * 12)
.addTo(ICD);

GT_Values.RA.stdBuilder()
.itemInputs(
GT_Utility.getIntegratedCircuit(19),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64),
Materials.Carbon.getDust(64))
.fluidInputs(Materials.Fluorine.getGas(4000 * 9 * 32), Materials.Oxygen.getGas(125000 * 32))
.noItemOutputs()
.fluidOutputs(Materials.Polytetrafluoroethylene.getMolten(36000 * 32))
.noOptimize()
.specialValue(1800)
.eut(RECIPE_IV)
.duration(20 * 12 * 32)
.addTo(ICD);

}
}

This file was deleted.

Loading

0 comments on commit 8954ffa

Please sign in to comment.