Skip to content

Commit

Permalink
add glass to structure
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAPenguin0 committed Jan 5, 2025
1 parent 1e932f4 commit e8625eb
Show file tree
Hide file tree
Showing 4 changed files with 5,064 additions and 3,113 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package gregtech.common.tileentities.machines.multi.nanochip;

import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static gregtech.api.enums.HatchElement.*;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain;
import static gregtech.api.enums.HatchElement.Energy;
import static gregtech.api.enums.HatchElement.ExoticEnergy;
import static gregtech.api.enums.HatchElement.InputBus;
import static gregtech.api.enums.HatchElement.OutputBus;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_DISTILLATION_TOWER_ACTIVE_GLOW;
Expand Down Expand Up @@ -68,45 +72,50 @@ public class MTENanochipAssemblyComplex extends MTEExtendedPowerMultiBlockBase<M
public static final IStructureDefinition<MTENanochipAssemblyComplex> STRUCTURE_DEFINITION = StructureDefinition
.<MTENanochipAssemblyComplex>builder()
.addShape(STRUCTURE_PIECE_MAIN, AssemblyComplexStructureString.MAIN_STRUCTURE)
// Dimensional Bridge
.addElement('A', ofBlock(GregTechAPI.sBlockCasings1, 14))
// White casing block
.addElement('B', ofBlock(GregTechAPI.sBlockCasings8, 5))
// Black casing block
.addElement('C', ofBlock(GregTechAPI.sBlockCasings8, 10))
.addElement('D', ofFrame(Materials.Naquadah))
// Tinted glass, for now just black and gray because other options are for psychopaths
.addElement('E', ofChain(ofBlock(GregTechAPI.sBlockTintedGlass, 3), ofBlock(GregTechAPI.sBlockTintedGlass, 2)))
// Module
.addElement(
'F',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeast(AssemblyHatchElement.AssemblyModule)
.casingIndex(CASING_INDEX_WHITE)
.dot(1)
// Base casing or assembly module
.buildAndChain(GregTechAPI.sBlockCasings8, 5))
// Energy Hatch
.addElement(
'G',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeast(Energy, ExoticEnergy)
.casingIndex(CASING_INDEX_BASE)
.dot(1)
.buildAndChain(GregTechAPI.sBlockCasings8, 10))
// Vacuum conveyor hatches that the main controller cares about go in specific slots
.addElement(
'B',
'H',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeastList(Arrays.asList(AssemblyHatchElement.VacuumConveyorHatch, InputBus, OutputBus))
.casingIndex(CASING_INDEX_WHITE)
.dot(2)
.buildAndChain(ofBlock(GregTechAPI.sBlockCasings8, 5)))
.addElement('C', ofBlock(GregTechAPI.sBlockCasings8, 5))
.addElement('D', ofBlock(GregTechAPI.sBlockCasings8, 10))
// Either a white casing block or an ignored hatch (this hatch is on the module)
.addElement(
'E',
'I',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeast(AssemblyHatchElement.IgnoredHatch)
.casingIndex(CASING_INDEX_WHITE)
.dot(3)
.buildAndChain(ofBlock(GregTechAPI.sBlockCasings8, 5)))
// Crafting storage block
.addElement('F', ofBlock(getCraftingStorageBlock(), getCraftingStorageMeta()))
.addElement('G', ofFrame(Materials.Naquadah))
// Energy Hatch
.addElement(
'L',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeast(Energy, ExoticEnergy)
.casingIndex(CASING_INDEX_BASE)
.dot(1)
.buildAndChain(GregTechAPI.sBlockCasings8, 10))
// Module
.addElement(
'M',
HatchElementBuilder.<MTENanochipAssemblyComplex>builder()
.atLeast(AssemblyHatchElement.AssemblyModule)
.casingIndex(CASING_INDEX_WHITE)
.dot(1)
// Base casing or assembly module
.buildAndChain(GregTechAPI.sBlockCasings8, 5))
.addElement('J', ofBlock(getCraftingStorageBlock(), getCraftingStorageMeta()))
.build();

public static final int MODULE_CONNECT_INTERVAL = 20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
import java.util.List;
import java.util.Map;

import gregtech.api.util.GTRecipe;
import gregtech.api.util.GTUtility;
import gregtech.api.util.HatchElementBuilder;
import gregtech.api.util.IGTHatchAdder;
import gregtech.api.util.OverclockCalculator;
import gregtech.api.util.ParallelHelper;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
Expand All @@ -36,7 +42,6 @@
import gregtech.api.recipe.check.CheckRecipeResult;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.*;
import gregtech.api.util.shutdown.ShutDownReasonRegistry;
import gregtech.api.util.shutdown.SimpleShutDownReason;
import gregtech.common.tileentities.machines.multi.nanochip.hatches.MTEHatchVacuumConveyorInput;
Expand Down
Loading

0 comments on commit e8625eb

Please sign in to comment.