Skip to content

Commit

Permalink
Restore Spotless off/on toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 21, 2024
1 parent adef96c commit c8bb1bc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 107 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ spotless {
removeUnusedImports()
palantirJavaFormat()
importOrderFile(file("mega.importorder"))
toggleOffOn()

// courtesy of diffplug/spotless#240
// https://github.com/diffplug/spotless/issues/240#issuecomment-385206606
Expand Down
130 changes: 23 additions & 107 deletions src/data/java/gripe/_90/megacells/datagen/MEGARecipeProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,113 +61,29 @@ protected void buildRecipes(@NotNull RecipeOutput output) {
housing(output, MEGAItems.MEGA_ITEM_CELL_HOUSING, MEGATags.SKY_STEEL_INGOT);
housing(output, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);

cell(
output,
MEGAItems.ITEM_CELL_1M,
MEGAItems.CELL_COMPONENT_1M,
MEGAItems.MEGA_ITEM_CELL_HOUSING,
ConventionTags.IRON_INGOT);
cell(
output,
MEGAItems.ITEM_CELL_4M,
MEGAItems.CELL_COMPONENT_4M,
MEGAItems.MEGA_ITEM_CELL_HOUSING,
ConventionTags.IRON_INGOT);
cell(
output,
MEGAItems.ITEM_CELL_16M,
MEGAItems.CELL_COMPONENT_16M,
MEGAItems.MEGA_ITEM_CELL_HOUSING,
ConventionTags.IRON_INGOT);
cell(
output,
MEGAItems.ITEM_CELL_64M,
MEGAItems.CELL_COMPONENT_64M,
MEGAItems.MEGA_ITEM_CELL_HOUSING,
ConventionTags.IRON_INGOT);
cell(
output,
MEGAItems.ITEM_CELL_256M,
MEGAItems.CELL_COMPONENT_256M,
MEGAItems.MEGA_ITEM_CELL_HOUSING,
ConventionTags.IRON_INGOT);

cell(
output,
MEGAItems.FLUID_CELL_1M,
MEGAItems.CELL_COMPONENT_1M,
MEGAItems.MEGA_FLUID_CELL_HOUSING,
ConventionTags.COPPER_INGOT);
cell(
output,
MEGAItems.FLUID_CELL_4M,
MEGAItems.CELL_COMPONENT_4M,
MEGAItems.MEGA_FLUID_CELL_HOUSING,
ConventionTags.COPPER_INGOT);
cell(
output,
MEGAItems.FLUID_CELL_16M,
MEGAItems.CELL_COMPONENT_16M,
MEGAItems.MEGA_FLUID_CELL_HOUSING,
ConventionTags.COPPER_INGOT);
cell(
output,
MEGAItems.FLUID_CELL_64M,
MEGAItems.CELL_COMPONENT_64M,
MEGAItems.MEGA_FLUID_CELL_HOUSING,
ConventionTags.COPPER_INGOT);
cell(
output,
MEGAItems.FLUID_CELL_256M,
MEGAItems.CELL_COMPONENT_256M,
MEGAItems.MEGA_FLUID_CELL_HOUSING,
ConventionTags.COPPER_INGOT);

portable(
output, MEGAItems.PORTABLE_ITEM_CELL_1M, MEGAItems.CELL_COMPONENT_1M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(
output, MEGAItems.PORTABLE_ITEM_CELL_4M, MEGAItems.CELL_COMPONENT_4M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_ITEM_CELL_16M,
MEGAItems.CELL_COMPONENT_16M,
MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_ITEM_CELL_64M,
MEGAItems.CELL_COMPONENT_64M,
MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_ITEM_CELL_256M,
MEGAItems.CELL_COMPONENT_256M,
MEGAItems.MEGA_ITEM_CELL_HOUSING);

portable(
output,
MEGAItems.PORTABLE_FLUID_CELL_1M,
MEGAItems.CELL_COMPONENT_1M,
MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_FLUID_CELL_4M,
MEGAItems.CELL_COMPONENT_4M,
MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_FLUID_CELL_16M,
MEGAItems.CELL_COMPONENT_16M,
MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_FLUID_CELL_64M,
MEGAItems.CELL_COMPONENT_64M,
MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(
output,
MEGAItems.PORTABLE_FLUID_CELL_256M,
MEGAItems.CELL_COMPONENT_256M,
MEGAItems.MEGA_FLUID_CELL_HOUSING);
cell(output, MEGAItems.ITEM_CELL_1M, MEGAItems.CELL_COMPONENT_1M, MEGAItems.MEGA_ITEM_CELL_HOUSING, ConventionTags.IRON_INGOT);
cell(output, MEGAItems.ITEM_CELL_4M, MEGAItems.CELL_COMPONENT_4M, MEGAItems.MEGA_ITEM_CELL_HOUSING, ConventionTags.IRON_INGOT);
cell(output, MEGAItems.ITEM_CELL_16M, MEGAItems.CELL_COMPONENT_16M, MEGAItems.MEGA_ITEM_CELL_HOUSING, ConventionTags.IRON_INGOT);
cell(output, MEGAItems.ITEM_CELL_64M, MEGAItems.CELL_COMPONENT_64M, MEGAItems.MEGA_ITEM_CELL_HOUSING, ConventionTags.IRON_INGOT);
cell(output, MEGAItems.ITEM_CELL_256M, MEGAItems.CELL_COMPONENT_256M, MEGAItems.MEGA_ITEM_CELL_HOUSING, ConventionTags.IRON_INGOT);

cell(output, MEGAItems.FLUID_CELL_1M, MEGAItems.CELL_COMPONENT_1M, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);
cell(output, MEGAItems.FLUID_CELL_4M, MEGAItems.CELL_COMPONENT_4M, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);
cell(output, MEGAItems.FLUID_CELL_16M, MEGAItems.CELL_COMPONENT_16M, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);
cell(output, MEGAItems.FLUID_CELL_64M, MEGAItems.CELL_COMPONENT_64M, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);
cell(output, MEGAItems.FLUID_CELL_256M, MEGAItems.CELL_COMPONENT_256M, MEGAItems.MEGA_FLUID_CELL_HOUSING, ConventionTags.COPPER_INGOT);

portable(output, MEGAItems.PORTABLE_ITEM_CELL_1M, MEGAItems.CELL_COMPONENT_1M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_ITEM_CELL_4M, MEGAItems.CELL_COMPONENT_4M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_ITEM_CELL_16M, MEGAItems.CELL_COMPONENT_16M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_ITEM_CELL_64M, MEGAItems.CELL_COMPONENT_64M, MEGAItems.MEGA_ITEM_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_ITEM_CELL_256M, MEGAItems.CELL_COMPONENT_256M, MEGAItems.MEGA_ITEM_CELL_HOUSING);

portable(output, MEGAItems.PORTABLE_FLUID_CELL_1M, MEGAItems.CELL_COMPONENT_1M, MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_FLUID_CELL_4M, MEGAItems.CELL_COMPONENT_4M, MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_FLUID_CELL_16M, MEGAItems.CELL_COMPONENT_16M, MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_FLUID_CELL_64M, MEGAItems.CELL_COMPONENT_64M, MEGAItems.MEGA_FLUID_CELL_HOUSING);
portable(output, MEGAItems.PORTABLE_FLUID_CELL_256M, MEGAItems.CELL_COMPONENT_256M, MEGAItems.MEGA_FLUID_CELL_HOUSING);
// spotless:on

ShapedRecipeBuilder.shaped(RecipeCategory.BUILDING_BLOCKS, MEGABlocks.SKY_STEEL_BLOCK)
Expand Down

0 comments on commit c8bb1bc

Please sign in to comment.