From 382c0a2f1f4aadfcbd73d3743b0458df83b8d65d Mon Sep 17 00:00:00 2001 From: GitHub GTNH Actions <> Date: Tue, 23 Apr 2024 15:16:49 +0000 Subject: [PATCH] spotlessApply --- .../gregtech5/oreprocessing/DiagramBuilder.java | 3 +-- .../gregtech5/oreprocessing/GregTechOreProcessing.java | 2 -- .../gregtech5/oreprocessing/LayoutHandler.java | 10 +++++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/DiagramBuilder.java b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/DiagramBuilder.java index 401eaf9..926ec9a 100644 --- a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/DiagramBuilder.java +++ b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/DiagramBuilder.java @@ -1,6 +1,5 @@ package com.github.dcysteine.neicustomdiagram.generators.gregtech5.oreprocessing; -import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -89,7 +88,7 @@ void buildDiagram(ComponentDiagramMatcher.Builder matcherBuilder) { diagramBuilder.addAllOptionalLayouts(layoutHandler.layouts()) .insertIntoSlot(LayoutHandler.SlotKeys.RAW_ORE, DisplayComponent.builder(rawOre).build()); - //diagramBuilder.autoInsertIntoSlotGroup(LayoutHandler.SlotGroupKeys.RAW_ORE2).insertIntoNextSlot(DisplayComponent.builder(rawOre2).build()); + // diagramBuilder.autoInsertIntoSlotGroup(LayoutHandler.SlotGroupKeys.RAW_ORE2).insertIntoNextSlot(DisplayComponent.builder(rawOre2).build()); Optional crushedOreOptional = handleRecipes( RecipeHandler.RecipeMap.MACERATOR, diff --git a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/GregTechOreProcessing.java b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/GregTechOreProcessing.java index 5424110..135c0b2 100644 --- a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/GregTechOreProcessing.java +++ b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/GregTechOreProcessing.java @@ -4,9 +4,7 @@ import java.util.List; import java.util.Optional; -import gregtech.common.blocks.GT_Item_Ores; import net.minecraft.block.Block; -import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import com.github.bartimaeusnek.bartworks.system.material.Werkstoff; diff --git a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/LayoutHandler.java b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/LayoutHandler.java index 8bb0f29..368c915 100644 --- a/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/LayoutHandler.java +++ b/src/main/java/com/github/dcysteine/neicustomdiagram/generators/gregtech5/oreprocessing/LayoutHandler.java @@ -89,7 +89,7 @@ ImmutableList layouts() { return layouts; } - //Ores Block + // Ores Block private Layout buildRawOreLayout() { Slot inputSlot = Slot.builder(Grid.GRID.grid(6, 2)).setDrawFunction(Draw::drawSlot) .setTooltip(Tooltip.create(Lang.GREGTECH_5_ORE_PROCESSING.trans("oreslot"), Tooltip.SLOT_FORMATTING)) @@ -100,18 +100,18 @@ private Layout buildRawOreLayout() { return Layout.builder().putSlot(SlotKeys.RAW_ORE, inputSlot).addInteractable(allDiagramsButton).build(); } - //Raw Ores Item + // Raw Ores Item private Layout buildRawOre2Layout() { SlotGroup inputSlot = SlotGroup.builder(1, 1, Grid.GRID.grid(6, 4), Grid.Direction.W) - .setDefaultTooltip(Tooltip.create(Lang.GREGTECH_5_ORE_PROCESSING.trans("raworeslot"), Tooltip.SLOT_FORMATTING)) + .setDefaultTooltip( + Tooltip.create(Lang.GREGTECH_5_ORE_PROCESSING.trans("raworeslot"), Tooltip.SLOT_FORMATTING)) .build(); return Layout.builder().putSlotGroup(SlotGroupKeys.RAW_ORE2, inputSlot).build(); } private Layout buildRawOreMacerateLayout() { - Lines lines = Lines.builder(Grid.GRID.grid(6, 2)) - .addSegment(Grid.GRID.grid(4, 2)) + Lines lines = Lines.builder(Grid.GRID.grid(6, 2)).addSegment(Grid.GRID.grid(4, 2)) .addArrow(Grid.GRID.edge(4, 10, Grid.Direction.N)).build(); CustomInteractable label = labelHandler.buildLabel(LabelHandler.ItemLabel.MACERATOR, Grid.GRID.grid(4, 8));