use of com.minecolonies.api.crafting.GenericRecipe in project minecolonies by ldtteam.
the class GenericRecipeUtils method create.
@NotNull
public static IGenericRecipe create(@NotNull final IRecipe<?> recipe) {
final IGenericRecipe original = Objects.requireNonNull(GenericRecipe.of(recipe));
final List<List<ItemStack>> inputs = compact(recipe.getIngredients());
return new GenericRecipe(original.getPrimaryOutput(), original.getAdditionalOutputs(), inputs, original.getGridSize(), original.getIntermediate(), original.getLootTable(), new ArrayList<>(), -1);
}
use of com.minecolonies.api.crafting.GenericRecipe in project minecolonies by Minecolonies.
the class GenericRecipeUtils method create.
@NotNull
public static IGenericRecipe create(@NotNull final IRecipe<?> recipe) {
final IGenericRecipe original = Objects.requireNonNull(GenericRecipe.of(recipe));
final List<List<ItemStack>> inputs = compact(recipe.getIngredients());
return new GenericRecipe(original.getPrimaryOutput(), original.getAdditionalOutputs(), inputs, original.getGridSize(), original.getIntermediate(), original.getLootTable(), new ArrayList<>(), -1);
}
Aggregations