@Override public void loadUsageRecipes(ItemStack ingredient) { int redstone = RedstoneExtractorRecipes.discharge().value(ingredient); if (redstone > 0) arecipes.add(new StarchPair(ingredient, redstone)); int fuel = TileEntityFurnace.getItemBurnTime(ingredient); if (fuel > 0) afuels.add(new FuelPair(ingredient, fuel)); }
@Override public void loadCraftingRecipes(String outputId, Object... results) { if ((outputId.equals("redstone")) && (getClass() == RedstoneExtractorHandler.class)) { Map<ItemStack, Integer> recipes = RedstoneExtractorRecipes.discharge().getPowerList(); for (Map.Entry<ItemStack, Integer> recipe : recipes.entrySet()) this.arecipes.add(new StarchPair(recipe.getKey(), recipe.getValue())); } else { super.loadCraftingRecipes(outputId, results); } }