use of com.codetaylor.mc.artisanworktables.modules.worktables.recipe.SecondaryIngredientMatcher in project artisan-worktables by codetaylor.
the class TileEntitySecondaryInputBase method getSecondaryIngredientMatcher.
@Override
public ISecondaryIngredientMatcher getSecondaryIngredientMatcher() {
int slotCount = this.secondaryIngredientHandler.getSlots();
List<IArtisanItemStack> inputs = new ArrayList<>(slotCount);
for (int i = 0; i < slotCount; i++) {
ItemStack itemStack = this.secondaryIngredientHandler.getStackInSlot(i);
inputs.add(ArtisanItemStack.from(itemStack));
}
return new SecondaryIngredientMatcher(inputs);
}
Aggregations