Gelatine, jelly, recipes

This commit is contained in:
paulevsGitch 2020-12-07 12:42:32 +03:00
parent 02e99b8cc4
commit eca14bce9b
14 changed files with 58 additions and 7 deletions

View file

@ -1,5 +1,6 @@
package ru.betterend.recipe.builders;
import java.util.Arrays;
import java.util.Map;
import com.google.common.collect.Maps;
@ -71,6 +72,10 @@ public class GridRecipe {
return addMaterial(key, Ingredient.fromTag(value));
}
public GridRecipe addMaterial(char key, ItemStack... value) {
return addMaterial(key, Ingredient.ofStacks(Arrays.stream(value)));
}
public GridRecipe addMaterial(char key, ItemConvertible... values) {
for (ItemConvertible item: values) {
exist &= RecipeHelper.exists(item);