use of net.mcft.copy.betterstorage.api.crafting.IStationRecipe in project BetterStorage by copygirl.
the class MTCraftingStation method addShapeless.
@ZenMethod
public static void addShapeless(IItemStack[] output, IIngredient[] input, @Optional int experience, @Optional int craftingTime) {
ItemStack[] recipeOutput = MTHelper.toStacks(output);
IStationRecipe recipe = new MTShapelessStationRecipe(input, recipeOutput, experience, craftingTime);
MineTweakerAPI.apply(new UndoableRecipeAddAction(recipe, recipeOutput));
}
use of net.mcft.copy.betterstorage.api.crafting.IStationRecipe in project BetterStorage by copygirl.
the class MTCraftingStation method addShaped.
private static void addShaped(IItemStack[] output, IIngredient[][] input, int experience, int craftingTime, boolean mirrored) {
ItemStack[] recipeOutput = MTHelper.toStacks(output);
IStationRecipe recipe = new MTShapedStationRecipe(input, recipeOutput, experience, craftingTime, mirrored);
MineTweakerAPI.apply(new UndoableRecipeAddAction(recipe, recipeOutput));
}
use of net.mcft.copy.betterstorage.api.crafting.IStationRecipe in project BetterStorage by copygirl.
the class NEIRecipeHandler method getRecipes.
public List<CachedStationRecipe> getRecipes() {
if (cachedRecipes == null) {
cachedRecipes = new ArrayList<CachedStationRecipe>();
for (IStationRecipe recipe : BetterStorageCrafting.recipes) {
List<IRecipeInput[]> sampleInput = recipe.getSampleInputs();
if (sampleInput == null)
continue;
cachedRecipes.add(new CachedStationRecipe(recipe));
}
}
return cachedRecipes;
}
Aggregations