use of stanhebben.zenscript.annotations.ZenMethod in project BetterWithAddons by DaedalusGame.
the class LureTree method add.
@ZenMethod
public static void add(@NotNull IItemStack input, int food) {
ItemStack stack = InputHelper.toStack(input);
TreeFood r = new TreeFood(stack, food);
MineTweakerAPI.apply(new Add(r));
}
use of stanhebben.zenscript.annotations.ZenMethod in project BetterWithAddons by DaedalusGame.
the class LureTree method remove.
@ZenMethod
public static void remove(@NotNull IItemStack input) {
ItemStack stack = InputHelper.toStack(input);
MineTweakerAPI.apply(new Remove(stack));
}
use of stanhebben.zenscript.annotations.ZenMethod in project BetterWithAddons by DaedalusGame.
the class SoftWoods method add.
@ZenMethod
public static void add(@NotNull IItemStack input, float hardness) {
if (!InputHelper.isABlock(input)) {
MineTweakerAPI.logError("Could not add soft wood " + input.toString() + "; not recognized as a block.");
return;
}
ItemStack stack = InputHelper.toStack(input);
WoodHardness r = new WoodHardness(Block.getBlockFromItem(stack.getItem()), stack.getMetadata(), hardness);
MineTweakerAPI.apply(new Add(r));
}
use of stanhebben.zenscript.annotations.ZenMethod in project BetterWithAddons by DaedalusGame.
the class FireNet method add.
@ZenMethod
public static void add(IItemStack[] outputs, @NotNull IIngredient input) {
NetRecipe r = new NetRecipe(BlockNettedScreen.SifterType.FIRE, InputHelper.toObject(input), 0, InputHelper.toStacks(outputs));
MineTweakerAPI.apply(new Add("FireNet", FireNetRecipeCategory.UID, CraftingManagerFireNet.getInstance(), r));
}
use of stanhebben.zenscript.annotations.ZenMethod in project BetterWithAddons by DaedalusGame.
the class WaterNet method add.
@ZenMethod
public static void add(IItemStack[] outputs, @NotNull IIngredient input) {
NetRecipe r = new NetRecipe(BlockNettedScreen.SifterType.WATER, InputHelper.toObject(input), 0, InputHelper.toStacks(outputs));
MineTweakerAPI.apply(new Add("WaterNet", WaterNetRecipeCategory.UID, CraftingManagerWaterNet.getInstance(), r));
}
Aggregations