()
| 108 | public static final List<IRecipe> BUFFER = new ArrayListNoNulls<>(1000); |
| 109 | |
| 110 | public static void stopBuffering() { |
| 111 | BUFFERING = F; |
| 112 | List<IRecipe> tList = list(); |
| 113 | for (int i = 0; i < tList.size(); i++) { |
| 114 | IRecipe tRecipe = tList.get(i); |
| 115 | if (tRecipe != null) { |
| 116 | if (tRecipe instanceof ICraftingRecipeGT && !((ICraftingRecipeGT)tRecipe).isRemovableByGT()) continue; |
| 117 | if (CLASSES_SPECIAL.contains(tRecipe.getClass().getName())) continue; |
| 118 | if (RECIPES_TO_DELATE.contains(tRecipe.getRecipeOutput(), T)) tList.set(i, null); |
| 119 | } |
| 120 | } |
| 121 | tList.removeAll(Arrays.asList((IRecipe)null)); |
| 122 | // This setting is not meant to speed up load times, its meant to just make Crafting Recipes less visible in NEI |
| 123 | if (!DISABLE_GT6_CRAFTING_RECIPES) for (IRecipe tRecipe : BUFFER) GameRegistry.addRecipe(tRecipe); |
| 124 | BUFFER.clear(); |
| 125 | } |
| 126 | |
| 127 | public static final String DELATE = "gt:delate"; |
| 128 |
no test coverage detected