aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/nei/NEI_GT_Config.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
commit0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch)
tree1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/nei/NEI_GT_Config.java
parentf8cc82edeb9810c45cba762d733a2c909a302faa (diff)
downloadGT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/nei/NEI_GT_Config.java')
-rw-r--r--src/main/java/gregtech/nei/NEI_GT_Config.java27
1 files changed, 15 insertions, 12 deletions
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.
*
- * <p>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.
+ * <p>
+ * 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<GT_Recipe.GT_Recipe_Map, Integer> RECIPE_MAP_ORDERING =
- ImmutableMap.<GT_Recipe.GT_Recipe_Map, Integer>builder()
- .put(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, 1)
- .put(GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, 2)
- .build();
+ private static final ImmutableMap<GT_Recipe.GT_Recipe_Map, Integer> RECIPE_MAP_ORDERING = ImmutableMap.<GT_Recipe.GT_Recipe_Map, Integer>builder()
+ .put(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes, 1)
+ .put(GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes, 2).build();
- private static final Comparator<RecipeMapHandler> RECIPE_MAP_HANDLER_COMPARATOR =
- Comparator.comparingInt(handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0));
+ private static final Comparator<RecipeMapHandler> RECIPE_MAP_HANDLER_COMPARATOR = Comparator
+ .comparingInt(handler -> RECIPE_MAP_ORDERING.getOrDefault(handler.getRecipeMap(), 0));
public static boolean sIsAdded = true;