Search in sources :

Example 1 with CherryBoxRecipe

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)));
}
Also used : CherryBoxRecipe(betterwithaddons.crafting.recipes.CherryBoxRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 2 with CherryBoxRecipe

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);
}
Also used : CherryBoxRecipe(betterwithaddons.crafting.recipes.CherryBoxRecipe) Nullable(javax.annotation.Nullable)

Example 3 with CherryBoxRecipe

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)));
}
Also used : CherryBoxRecipe(betterwithaddons.crafting.recipes.CherryBoxRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

CherryBoxRecipe (betterwithaddons.crafting.recipes.CherryBoxRecipe)3 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)2 Nullable (javax.annotation.Nullable)1