Skip to content

Commit

Permalink
Merge branch 'master' into foil
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master authored Dec 26, 2024
2 parents 1253fff + 0fc3831 commit 4efe055
Show file tree
Hide file tree
Showing 152 changed files with 248 additions and 11,630 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,31 @@
import static gregtech.api.enums.OrePrefixes.plate;
import static gregtech.api.recipe.RecipeMaps.compressorRecipes;
import static gregtech.api.recipe.RecipeMaps.hammerRecipes;
import static gregtech.api.recipe.RecipeMaps.implosionRecipes;
import static gregtech.api.recipe.RecipeMaps.laserEngraverRecipes;
import static gregtech.api.recipe.RecipeMaps.latheRecipes;
import static gregtech.api.recipe.RecipeMaps.sifterRecipes;
import static gregtech.api.util.GTRecipeBuilder.MINUTES;
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static gregtech.api.util.GTRecipeBuilder.TICKS;
import static gregtech.api.util.GTRecipeConstants.ADDITIVE_AMOUNT;

import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;

import bartworks.system.material.Werkstoff;
import bartworks.system.material.WerkstoffLoader;
import bartworks.system.material.werkstoff_loaders.IWerkstoffRunnable;
import bartworks.util.BWColorUtil;
import gregtech.api.GregTechAPI;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
import gregtech.api.enums.TierEU;
import gregtech.api.interfaces.ITexture;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GTModHandler;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.common.covers.CoverLens;

public class GemLoader implements IWerkstoffRunnable {
Expand Down Expand Up @@ -133,6 +138,48 @@ public void run(Werkstoff werkstoff) {
.eut(16)
.addTo(hammerRecipes);

if (!werkstoff.contains(WerkstoffLoader.NO_BLAST)) {
GTValues.RA.stdBuilder()
.itemInputs(werkstoff.get(gemFlawless, 3))
.itemOutputs(werkstoff.get(gemExquisite), GTOreDictUnificator.get(dustTiny, Materials.DarkAsh, 2))
.duration(20 * TICKS)
.eut(TierEU.RECIPE_LV)
.metadata(ADDITIVE_AMOUNT, 8)
.addTo(implosionRecipes);

GTValues.RA.stdBuilder()
.itemInputs(werkstoff.get(gem, 3))
.itemOutputs(werkstoff.get(gemFlawless), GTOreDictUnificator.get(dustTiny, Materials.DarkAsh, 2))
.duration(20 * TICKS)
.eut(TierEU.RECIPE_LV)
.metadata(ADDITIVE_AMOUNT, 8)
.addTo(implosionRecipes);

GTValues.RA.stdBuilder()
.itemInputs(werkstoff.get(gemFlawed, 3))
.itemOutputs(werkstoff.get(gem), GTOreDictUnificator.get(dustTiny, Materials.DarkAsh, 2))
.duration(20 * TICKS)
.eut(TierEU.RECIPE_LV)
.metadata(ADDITIVE_AMOUNT, 8)
.addTo(implosionRecipes);

GTValues.RA.stdBuilder()
.itemInputs(werkstoff.get(gemChipped, 3))
.itemOutputs(werkstoff.get(gemFlawed), GTOreDictUnificator.get(dustTiny, Materials.DarkAsh, 2))
.duration(20 * TICKS)
.eut(TierEU.RECIPE_LV)
.metadata(ADDITIVE_AMOUNT, 8)
.addTo(implosionRecipes);

GTValues.RA.stdBuilder()
.itemInputs(werkstoff.get(dust, 4))
.itemOutputs(werkstoff.get(gem, 3), GTOreDictUnificator.get(dustTiny, Materials.DarkAsh, 8))
.duration(20 * TICKS)
.eut(TierEU.RECIPE_LV)
.metadata(ADDITIVE_AMOUNT, 24)
.addTo(implosionRecipes);
}

if (werkstoff.hasItemType(plate)) {

GTValues.RA.stdBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static gregtech.api.enums.GTValues.V;
import static gregtech.api.enums.Textures.BlockIcons.*;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTStructureUtility.chainAllGlasses;

import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -40,7 +41,6 @@
import gregtech.api.metatileentity.implementations.MTEHatch;
import gregtech.api.metatileentity.implementations.MTEHatchInput;
import gregtech.api.metatileentity.implementations.MTEHatchOutput;
import gregtech.api.multitileentity.multiblock.casing.Glasses;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.check.CheckRecipeResult;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;
Expand Down Expand Up @@ -124,7 +124,7 @@ public IStructureDefinition<MTEExtremeHeatExchanger> getStructure_EM() {
.dot(5)
.build(),
onElementPass(x -> x.casingAmount++, ofBlock(GregTechAPI.sBlockCasings4, 0))))
.addElement('G', Glasses.chainAllGlasses())
.addElement('G', chainAllGlasses())
.addElement('P', ofBlock(GregTechAPI.sBlockCasings2, 15))
.addElement('W', ofBlock(Loaders.pressureResistantWalls, 0))
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTStructureUtility.chainAllGlasses;
import static gregtech.api.util.GTStructureUtility.ofFrame;

import java.util.ArrayList;
Expand Down Expand Up @@ -47,7 +48,6 @@
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.logic.ProcessingLogic;
import gregtech.api.metatileentity.implementations.MTEHatch;
import gregtech.api.multitileentity.multiblock.casing.Glasses;
import gregtech.api.objects.XSTR;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.check.CheckRecipeResult;
Expand Down Expand Up @@ -229,7 +229,7 @@ public IStructureDefinition<MTENeutronActivator> getStructure_EM() {
onElementPass(MTENeutronActivator::onCasingFound, ofBlock(GregTechAPI.sBlockCasings4, 1))))
.addElement('D', ofBlock(GregTechAPI.sBlockCasings2, 6))
.addElement('F', ofFrame(Materials.Steel))
.addElement('G', Glasses.chainAllGlasses())
.addElement('G', chainAllGlasses())
.addElement('P', ofBlock(Loaders.speedingPipe, 0))
.addElement(
'X',
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/gregtech/GTMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
import gregtech.loaders.postload.RecyclerBlacklistLoader;
import gregtech.loaders.postload.ScrapboxDropLoader;
import gregtech.loaders.preload.GTPreLoad;
import gregtech.loaders.preload.GT_Loader_MultiTileEntities;
import gregtech.loaders.preload.LoaderCircuitBehaviors;
import gregtech.loaders.preload.LoaderGTBlockFluid;
import gregtech.loaders.preload.LoaderGTItemData;
Expand Down Expand Up @@ -299,9 +298,6 @@ public void onPreLoad(FMLPreInitializationEvent aEvent) {
new LoaderGTItemData().run();
new LoaderGTBlockFluid().run();
new LoaderMetaTileEntities().run();
if (GTValues.enableMultiTileEntities) {
new GT_Loader_MultiTileEntities().run();
}

new LoaderCircuitBehaviors().run();
new CoverBehaviorLoader().run();
Expand Down
Loading

0 comments on commit 4efe055

Please sign in to comment.