TechReborn/1.11/jei/rollingMachine/RollingMachineRecipeMaker.java

29 lines
735 B
Java
Raw Normal View History

2016-03-13 17:08:30 +01:00
package techreborn.compat.jei.rollingMachine;
2016-04-22 05:51:15 +02:00
import mezz.jei.api.IJeiHelpers;
2016-03-25 10:47:34 +01:00
import net.minecraft.item.crafting.IRecipe;
import techreborn.api.RollingMachineRecipe;
2016-10-08 21:46:16 +02:00
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
public class RollingMachineRecipeMaker {
private RollingMachineRecipeMaker() {
2016-03-13 17:08:30 +01:00
}
2016-10-08 21:46:16 +02:00
public static List<Object> getRecipes(
@Nonnull
IJeiHelpers jeiHelpers) {
2016-03-13 17:08:30 +01:00
List<Object> recipes = new ArrayList<>();
2016-10-08 21:46:16 +02:00
for (IRecipe recipe : RollingMachineRecipe.instance.getRecipeList()) {
2016-04-22 05:51:15 +02:00
RollingMachineRecipeWrapper recipeWrapper = RollingMachineRecipeWrapper.create(jeiHelpers, recipe);
2016-10-08 21:46:16 +02:00
if (recipeWrapper != null) {
2016-03-13 17:08:30 +01:00
recipes.add(recipeWrapper);
}
}
return recipes;
}
}