From 0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Mon, 30 Jan 2023 10:56:42 -0800 Subject: [ci skip] spotlessApply with the new settings --- src/main/java/gregtech/nei/NEI_GT_Config.java | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/main/java/gregtech/nei/NEI_GT_Config.java') diff --git a/src/main/java/gregtech/nei/NEI_GT_Config.java b/src/main/java/gregtech/nei/NEI_GT_Config.java index 2a85b788ab..67efff5d70 100644 --- a/src/main/java/gregtech/nei/NEI_GT_Config.java +++ b/src/main/java/gregtech/nei/NEI_GT_Config.java @@ -1,34 +1,37 @@ package gregtech.nei; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; + import codechicken.nei.api.IConfigureNEI; import codechicken.nei.recipe.GuiCraftingRecipe; import codechicken.nei.recipe.GuiUsageRecipe; import codechicken.nei.recipe.TemplateRecipeHandler; + import com.google.common.collect.ImmutableMap; + import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.event.FMLInterModComms; import gregtech.api.enums.GT_Values; import gregtech.api.enums.ItemList; import gregtech.api.util.GT_Recipe; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; public class NEI_GT_Config implements IConfigureNEI { + /** * This map determines the order in which NEI handlers will be registered and displayed in tabs. * - *

Handlers will be displayed in ascending order of integer value. Any recipe map that is not - * present in this map will be assigned a value of 0. Negative values are fine. + *

+ * Handlers will be displayed in ascending order of integer value. Any recipe map that is not present in this map + * will be assigned a value of 0. Negative values are fine. */ - private static final ImmutableMap RECIPE_MAP_ORDERING = - ImmutableMap.builder() - .put(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, 1) - .put(GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, 2) - .build(); + private static final ImmutableMap RECIPE_MAP_ORDERING = ImmutableMap.builder() + .put(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, 1) + .put(GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, 2).build(); - private static final Comparator RECIPE_MAP_HANDLER_COMPARATOR = - Comparator.comparingInt(handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0)); + private static final Comparator RECIPE_MAP_HANDLER_COMPARATOR = Comparator + .comparingInt(handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0)); public static boolean sIsAdded = true; -- cgit