1117 lines of new recipes?
Added a new recipe manager to allow us to list the missing items that need to be reimplemented.
This commit is contained in:
parent
fb1d6f1074
commit
9268fa4d55
10 changed files with 1216 additions and 380 deletions
|
@ -1,9 +1,12 @@
|
|||
package techreborn.api;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import techreborn.api.recipe.IRecipeCompact;
|
||||
|
||||
public final class TechRebornAPI {
|
||||
|
||||
public static IRecipeCompact recipeCompact;
|
||||
|
||||
public static void addRollingOreMachinceRecipe(ItemStack output,
|
||||
Object... components) {
|
||||
RollingMachineRecipe.instance.addShapedOreRecipe(output, components);
|
||||
|
|
8
src/main/java/techreborn/api/recipe/IRecipeCompact.java
Normal file
8
src/main/java/techreborn/api/recipe/IRecipeCompact.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package techreborn.api.recipe;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IRecipeCompact {
|
||||
|
||||
ItemStack getItem(String name);
|
||||
}
|
|
@ -62,9 +62,9 @@ public class RecipeHandler {
|
|||
if (recipeList.contains(recipe)) {
|
||||
return;
|
||||
}
|
||||
if (!RecipeConfigManager.canLoadRecipe(recipe)) {
|
||||
return;
|
||||
}
|
||||
// if (!RecipeConfigManager.canLoadRecipe(recipe)) {
|
||||
// return;
|
||||
// }
|
||||
if (!machineNames.contains(recipe.getRecipeName())) {
|
||||
machineNames.add(recipe.getRecipeName());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue