use of betterwithaddons.crafting.recipes.SmeltingRecipe in project BetterWithAddons by DaedalusGame.
the class CraftingManagerTatara method getSmeltingResult.
@Nullable
public ItemStack getSmeltingResult(ItemStack input) {
Iterator<SmeltingRecipe> var2 = this.recipes.iterator();
SmeltingRecipe entry;
do {
if (!var2.hasNext()) {
return ItemStack.EMPTY;
}
entry = var2.next();
} while (!entry.matchesInput(input));
return entry.getOutput(input);
}
use of betterwithaddons.crafting.recipes.SmeltingRecipe in project BetterWithAddons by DaedalusGame.
the class CraftingManagerTatara method getSmeltingRecipe.
public SmeltingRecipe getSmeltingRecipe(ItemStack input) {
Iterator<SmeltingRecipe> var2 = this.recipes.iterator();
SmeltingRecipe entry;
do {
if (!var2.hasNext()) {
return null;
}
entry = var2.next();
} while (!entry.matchesInput(input));
return entry;
}
use of betterwithaddons.crafting.recipes.SmeltingRecipe in project BetterWithAddons by DaedalusGame.
the class Tatara method add.
@ZenMethod
public static void add(IItemStack output, IItemStack input) {
SmeltingRecipe recipe = new SmeltingRecipe(InputHelper.toObject(input), InputHelper.toStack(output));
MineTweakerAPI.apply(new Add(Lists.newArrayList(recipe)));
}
Aggregations