@Override public void fillStackedContents(RecipeItemHelper helper) { ItemStackHandler handler = ContainerMagibench.this.tile.handler; for (int i = 0; i < handler.getSlots(); i++) { helper.accountStack(handler.getStackInSlot(i)); } }
@Override public void fillStackedContents(RecipeItemHelper recipeItemHelper) { final int invSize = this.craftMatrix.getSlots(); for (int slot = 0; slot < invSize; slot++) { recipeItemHelper.accountStack(this.craftMatrix.getStackInSlot(slot)); } }
@Override @Nonnull public IntList getValidItemStacksPacked() { boolean normal = isConditionMet.getAsBoolean(); IntList validStacks = normal ? packedConditionMet : packedConditionNotMet; if (validStacks == null) { validStacks = IntLists.singleton(RecipeItemHelper.pack(normal ? stackConditionMet : stackConditionNotMet)); if (normal) packedConditionMet = validStacks; else packedConditionNotMet = validStacks; } return validStacks; }