Search in sources :

Example 1 with ISecondaryIngredientMatcher

use of com.codetaylor.mc.artisanworktables.api.internal.recipe.ISecondaryIngredientMatcher 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);
}
Also used : ISecondaryIngredientMatcher(com.codetaylor.mc.artisanworktables.api.internal.recipe.ISecondaryIngredientMatcher) SecondaryIngredientMatcher(com.codetaylor.mc.artisanworktables.modules.worktables.recipe.SecondaryIngredientMatcher) ArrayList(java.util.ArrayList) ArtisanItemStack(com.codetaylor.mc.artisanworktables.api.internal.recipe.ArtisanItemStack) ItemStack(net.minecraft.item.ItemStack) IArtisanItemStack(com.codetaylor.mc.artisanworktables.api.internal.recipe.IArtisanItemStack) IArtisanItemStack(com.codetaylor.mc.artisanworktables.api.internal.recipe.IArtisanItemStack)

Aggregations

ArtisanItemStack (com.codetaylor.mc.artisanworktables.api.internal.recipe.ArtisanItemStack)1 IArtisanItemStack (com.codetaylor.mc.artisanworktables.api.internal.recipe.IArtisanItemStack)1 ISecondaryIngredientMatcher (com.codetaylor.mc.artisanworktables.api.internal.recipe.ISecondaryIngredientMatcher)1 SecondaryIngredientMatcher (com.codetaylor.mc.artisanworktables.modules.worktables.recipe.SecondaryIngredientMatcher)1 ArrayList (java.util.ArrayList)1 ItemStack (net.minecraft.item.ItemStack)1