use of betterwithaddons.crafting.recipes.CherryBoxRecipe in project BetterWithAddons by DaedalusGame.
the class DryingBox method add.
@ZenMethod
public static void add(IItemStack output, IItemStack input) {
CherryBoxRecipe recipe = new CherryBoxRecipe(BlockCherryBox.CherryBoxType.DRYING, InputHelper.toObject(input), InputHelper.toStack(output));
MineTweakerAPI.apply(new Add("DryingBox", DryingBoxRecipeCategory.UID, CraftingManagerDryingBox.instance(), Lists.newArrayList(recipe)));
}
use of betterwithaddons.crafting.recipes.CherryBoxRecipe in project BetterWithAddons by DaedalusGame.
the class CraftingManagerCherryBox method getWorkResult.
@Nullable
public ItemStack getWorkResult(ItemStack input) {
Iterator<CherryBoxRecipe> var2 = this.recipes.iterator();
CherryBoxRecipe entry;
do {
if (!var2.hasNext()) {
return ItemStack.EMPTY;
}
entry = var2.next();
} while (!entry.matchesInput(input));
return entry.getOutput(input);
}
use of betterwithaddons.crafting.recipes.CherryBoxRecipe in project BetterWithAddons by DaedalusGame.
the class SoakingBox method add.
@ZenMethod
public static void add(IItemStack output, IItemStack input) {
CherryBoxRecipe recipe = new CherryBoxRecipe(BlockCherryBox.CherryBoxType.SOAKING, InputHelper.toObject(input), InputHelper.toStack(output));
MineTweakerAPI.apply(new Add("SoakingBox", SoakingBoxRecipeCategory.UID, CraftingManagerSoakingBox.instance(), Lists.newArrayList(recipe)));
}
Aggregations