TechReborn/ToAddBack/1.9/jei/rollingMachine/RollingMachineRecipeMaker.java
2016-03-13 16:08:30 +00:00

24 lines
620 B
Java

package techreborn.compat.jei.rollingMachine;
import net.minecraft.item.crafting.IRecipe;
import techreborn.api.RollingMachineRecipe;
import java.util.ArrayList;
import java.util.List;
public class RollingMachineRecipeMaker {
private RollingMachineRecipeMaker() {
}
public static List<Object> getRecipes() {
List<Object> recipes = new ArrayList<>();
for (IRecipe recipe : RollingMachineRecipe.instance.getRecipeList()) {
RollingMachineRecipeWrapper recipeWrapper = RollingMachineRecipeWrapper.create(recipe);
if (recipeWrapper != null) {
recipes.add(recipeWrapper);
}
}
return recipes;
}
}