Migrated some API calls
This commit is contained in:
parent
c11fca74a5
commit
daa4a2b4af
56 changed files with 172 additions and 167 deletions
|
@ -209,10 +209,10 @@ public class AnvilRecipe implements Recipe<Container>, UnknownReceipBookCategory
|
|||
@Override
|
||||
public NonNullList<Ingredient> getIngredients() {
|
||||
NonNullList<Ingredient> defaultedList = NonNullList.create();
|
||||
defaultedList.add(Ingredient.of(Registry.ITEM.stream()
|
||||
.filter(AnvilRecipe::isHammer)
|
||||
.filter(this::canUse)
|
||||
.map(ItemStack::new))
|
||||
defaultedList.add(Ingredient.of(BuiltInRegistries.ITEM.stream()
|
||||
.filter(AnvilRecipe::isHammer)
|
||||
.filter(this::canUse)
|
||||
.map(ItemStack::new))
|
||||
);
|
||||
defaultedList.add(input);
|
||||
return defaultedList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue