Skip to content

Commit

Permalink
move away from classicHatches() hatch adder (GTNewHorizons#3512)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Nov 18, 2024
1 parent 92b476e commit 48bd3dd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose;
import static gregtech.api.enums.GTValues.V;
import static gregtech.api.enums.HatchElement.Energy;
import static gregtech.api.enums.HatchElement.Maintenance;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static net.minecraft.util.StatCollector.translateToLocal;
import static tectech.thing.metaTileEntity.multi.base.TTMultiblockBase.HatchElement.EnergyMulti;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -78,7 +81,12 @@ public class MTEDataBank extends TTMultiblockBase implements ISurvivalConstructa
{ "BCCCB", "BDDDB", "BDDDB" } }))
.addElement('A', ofBlock(TTCasingsContainer.sBlockCasingsTT, 1))
.addElement('B', ofBlock(TTCasingsContainer.sBlockCasingsTT, 2))
.addElement('C', classicHatches(BlockGTCasingsTT.textureOffset, 1, TTCasingsContainer.sBlockCasingsTT, 0))
.addElement(
'C',
buildHatchAdder(MTEDataBank.class).atLeast(Maintenance, Energy, EnergyMulti)
.casingIndex(BlockGTCasingsTT.textureOffset)
.dot(1)
.buildAndChain(TTCasingsContainer.sBlockCasingsTT, 0))
.addElement(
'D',
buildHatchAdder(MTEDataBank.class)
Expand Down

0 comments on commit 48bd3dd

Please sign in to comment.