Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTian-mi committed Oct 11, 2024
1 parent 2ee8363 commit d0830e5
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
import gregtech.api.gui.widgets.*;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.metatileentity.interfaces.IGregTechTileEntity;
import gregtech.api.metatileentity.multiblock.*;
import gregtech.api.metatileentity.multiblock.IMultiblockPart;
import gregtech.api.metatileentity.multiblock.MultiblockAbility;
import gregtech.api.metatileentity.multiblock.ParallelLogicType;
import gregtech.api.metatileentity.multiblock.RecipeMapPrimitiveMultiblockController;
import gregtech.api.pattern.BlockPattern;
import gregtech.api.pattern.FactoryBlockPattern;
import gregtech.api.pattern.PatternMatchContext;
Expand Down Expand Up @@ -66,18 +69,19 @@ public MetaTileEntity createMetaTileEntity(IGregTechTileEntity tileEntity) {
return new MetaTileEntityCoagulationTank(this.metaTileEntityId);
}

@NotNull
@Override
protected BlockPattern createStructurePattern() {
return FactoryBlockPattern.start()
.aisle("XXX", "XXX", "XXX")
.aisle("XXX", "XIX", "X#X")
.aisle("XXX", "XIX", "X#X").setRepeatable(1, 4)
.aisle("XXX", "XSX", "XXX")
.where('X',
states(new IBlockState[]{SuSyBlocks.COAGULATION_TANK_WALL
.getState(BlockCoagulationTankWall.CoagulationTankWallType.WOODEN_COAGULATION_TANK_WALL)})
.where('X', states(getCasingState())
.or(abilities(MultiblockAbility.EXPORT_ITEMS, MultiblockAbility.IMPORT_FLUIDS)))
.where('#', air())
.where('I', isIndicatorPredicate())
.where('S', this.selfPredicate()).build();
.where('S', selfPredicate())
.build();
}

public static TraceabilityPredicate isIndicatorPredicate() {
Expand All @@ -90,6 +94,11 @@ public static TraceabilityPredicate isIndicatorPredicate() {
});
}

protected static IBlockState getCasingState() {
return SuSyBlocks.COAGULATION_TANK_WALL
.getState(BlockCoagulationTankWall.CoagulationTankWallType.WOODEN_COAGULATION_TANK_WALL);
}

@Override
public void addInformation(ItemStack stack, @Nullable World world, @NotNull List<String> tooltip, boolean advanced) {
super.addInformation(stack, world, tooltip, advanced);
Expand Down

0 comments on commit d0830e5

Please sign in to comment.