diff options
| author | boubou19 <miisterunknown@gmail.com> | 2023-04-01 18:11:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 18:11:43 +0200 |
| commit | 5f50e4a36ec000657b0a1664784acf00275293c6 (patch) | |
| tree | 5ef81441032735438c9fd9c620224ca58e46e537 /src/main/java/gregtech/common/tileentities/machines/multi | |
| parent | 6b77557e0e87cf5afd9ebd3985323ff1249e615c (diff) | |
| download | GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.gz GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.bz2 GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.zip | |
update spotless formatting (#1827)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines/multi')
39 files changed, 3710 insertions, 1969 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java index 0b47b93334..54551473f3 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java @@ -51,59 +51,176 @@ public class GT_MetaTileEntity_AssemblyLine extends private static final String STRUCTURE_PIECE_FIRST = "first"; private static final String STRUCTURE_PIECE_LATER = "later"; private static final String STRUCTURE_PIECE_LAST = "last"; - private static final IStructureDefinition<GT_MetaTileEntity_AssemblyLine> STRUCTURE_DEFINITION = StructureDefinition - .<GT_MetaTileEntity_AssemblyLine>builder() - .addShape( - STRUCTURE_PIECE_FIRST, - transpose( - new String[][] { { " ", "e", " " }, { "~", "l", "G" }, { "g", "m", "g" }, - { "b", "i", "b" }, })) - .addShape( - STRUCTURE_PIECE_LATER, - transpose( - new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, - { "b", "I", "b" }, })) - .addShape( - STRUCTURE_PIECE_LAST, - transpose( - new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, - { "o", "i", "b" }, })) - .addElement('G', ofBlock(GregTech_API.sBlockCasings3, 10)) // grate machine casing - .addElement('l', ofBlock(GregTech_API.sBlockCasings2, 9)) // assembler machine casing - .addElement('m', ofBlock(GregTech_API.sBlockCasings2, 5)) // assembling line casing - .addElement( - 'g', - ofChain( - ofBlockUnlocalizedName("IC2", "blockAlloyGlass", 0, true), - ofBlockUnlocalizedName("bartworks", "BW_GlasBlocks", 0, true), - ofBlockUnlocalizedName("bartworks", "BW_GlasBlocks2", 0, true), - // warded glass - ofBlockUnlocalizedName("Thaumcraft", "blockCosmeticOpaque", 2, false))) - .addElement( - 'e', - ofChain( - Energy.newAny(16, 1, ForgeDirection.UP, ForgeDirection.NORTH, ForgeDirection.SOUTH), - ofBlock(GregTech_API.sBlockCasings2, 0))) - .addElement( - 'd', - buildHatchAdder(GT_MetaTileEntity_AssemblyLine.class).atLeast(DataHatchElement.DataAccess).dot(2) - .casingIndex(42).allowOnly(ForgeDirection.NORTH) - .buildAndChain(GregTech_API.sBlockCasings3, 10)) - .addElement( - 'b', - buildHatchAdder(GT_MetaTileEntity_AssemblyLine.class) - .atLeast(InputHatch, InputHatch, InputHatch, InputHatch, Maintenance).casingIndex(16).dot(3) - .allowOnly(ForgeDirection.DOWN).buildAndChain( - ofBlock(GregTech_API.sBlockCasings2, 0), - ofHatchAdder(GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, 16, 4))) - .addElement( - 'I', - ofChain( - // all blocks nearby use solid steel casing, so let's use the texture of that - InputBus.newAny(16, 5, ForgeDirection.DOWN), - ofHatchAdder(GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, 16, 4))) - .addElement('i', InputBus.newAny(16, 5, ForgeDirection.DOWN)) - .addElement('o', OutputBus.newAny(16, 4, ForgeDirection.DOWN)).build(); + private static final IStructureDefinition<GT_MetaTileEntity_AssemblyLine> STRUCTURE_DEFINITION = StructureDefinition.<GT_MetaTileEntity_AssemblyLine>builder() + .addShape( + STRUCTURE_PIECE_FIRST, + transpose( + new String[][] { + { " ", "e", + " " }, + { "~", "l", + "G" }, + { "g", "m", + "g" }, + { "b", "i", + "b" }, })) + .addShape( + STRUCTURE_PIECE_LATER, + transpose( + new String[][] { + { " ", "e", + " " }, + { "d", "l", + "d" }, + { "g", "m", + "g" }, + { "b", "I", + "b" }, })) + .addShape( + STRUCTURE_PIECE_LAST, + transpose( + new String[][] { + { " ", "e", + " " }, + { "d", "l", + "d" }, + { "g", "m", + "g" }, + { "o", "i", + "b" }, })) + .addElement( + 'G', + ofBlock( + GregTech_API.sBlockCasings3, + 10)) // grate + // machine + // casing + .addElement( + 'l', + ofBlock( + GregTech_API.sBlockCasings2, + 9)) // assembler + // machine + // casing + .addElement( + 'm', + ofBlock( + GregTech_API.sBlockCasings2, + 5)) // assembling + // line + // casing + .addElement( + 'g', + ofChain( + ofBlockUnlocalizedName( + "IC2", + "blockAlloyGlass", + 0, + true), + ofBlockUnlocalizedName( + "bartworks", + "BW_GlasBlocks", + 0, + true), + ofBlockUnlocalizedName( + "bartworks", + "BW_GlasBlocks2", + 0, + true), + // warded + // glass + ofBlockUnlocalizedName( + "Thaumcraft", + "blockCosmeticOpaque", + 2, + false))) + .addElement( + 'e', + ofChain( + Energy.newAny( + 16, + 1, + ForgeDirection.UP, + ForgeDirection.NORTH, + ForgeDirection.SOUTH), + ofBlock( + GregTech_API.sBlockCasings2, + 0))) + .addElement( + 'd', + buildHatchAdder( + GT_MetaTileEntity_AssemblyLine.class).atLeast( + DataHatchElement.DataAccess) + .dot( + 2) + .casingIndex( + 42) + .allowOnly( + ForgeDirection.NORTH) + .buildAndChain( + GregTech_API.sBlockCasings3, + 10)) + .addElement( + 'b', + buildHatchAdder( + GT_MetaTileEntity_AssemblyLine.class).atLeast( + InputHatch, + InputHatch, + InputHatch, + InputHatch, + Maintenance) + .casingIndex( + 16) + .dot( + 3) + .allowOnly( + ForgeDirection.DOWN) + .buildAndChain( + ofBlock( + GregTech_API.sBlockCasings2, + 0), + ofHatchAdder( + GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, + 16, + 4))) + .addElement( + 'I', + ofChain( + // all + // blocks + // nearby + // use + // solid + // steel + // casing, + // so + // let's + // use + // the + // texture + // of + // that + InputBus.newAny( + 16, + 5, + ForgeDirection.DOWN), + ofHatchAdder( + GT_MetaTileEntity_AssemblyLine::addOutputToMachineList, + 16, + 4))) + .addElement( + 'i', + InputBus.newAny( + 16, + 5, + ForgeDirection.DOWN)) + |
