()
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public void run() { |
| 45 | NEI = T; |
| 46 | NEI_NH = Loader.instance().getIndexedModList().get("NotEnoughItems").getVersion().contains("GTNH"); |
| 47 | |
| 48 | // Dont mess with NEI-NH, only mess with Vanilla NEI. |
| 49 | if (!NEI_NH) { |
| 50 | // Remove Usage Handlers that have been replaced by other Handlers or Tooltips. |
| 51 | for (Iterator tIterator : new Iterator[] {/*GuiCraftingRecipe.craftinghandlers.iterator(), */GuiUsageRecipe.usagehandlers.iterator()}) { |
| 52 | while (tIterator.hasNext()) { |
| 53 | Object tObject = tIterator.next(); |
| 54 | if (tObject == null |
| 55 | || tObject.getClass().getName().contains("codechicken.nei.recipe.FuelRecipeHandler") // This one is just annoying clutter and badly designed too. |
| 56 | || tObject.getClass().getName().contains("codechicken.nei.recipe.FurnaceRecipeHandler") // There is a more detailed GT6 Handler for this. |
| 57 | ) tIterator.remove();// else DEB.println(tObject.getClass().getName()); |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | for (RecipeMap tMap : RecipeMap.RECIPE_MAP_LIST) if (tMap.mNEIAllowed) new NEI_RecipeMap(tMap).init(); |
| 63 | |
| 64 | if (CODE_CLIENT) { |
| 65 | codechicken.nei.api.API.registerGuiOverlay(MultiTileEntityGUIClientAdvancedCraftingTable.class, "crafting", 55, 22); |
| 66 | codechicken.nei.api.API.registerGuiOverlayHandler(MultiTileEntityGUIClientAdvancedCraftingTable.class, new codechicken.nei.recipe.DefaultOverlayHandler(55, 22), "crafting"); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | @Override public String getName() {return MD.GAPI.mName + " NEI Plugin";} |
| 71 | @Override public String getVersion() {return "6.16.02";} |
no test coverage detected