use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTIndustrialElectrolyzer method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient cells, IIngredient input2, int ticktime, int euTick) {
Object oInput1 = CraftTweakerCompat.toObject(cells);
Object oInput2 = CraftTweakerCompat.toObject(input2);
IndustrialElectrolyzerRecipe r = new IndustrialElectrolyzerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
addRecipe(r);
}
use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.
the class Alchemy method removeCost.
@ZenMethod
public static void removeCost(IItemStack iStack) {
ItemStack stack = (ItemStack) iStack.getInternal();
recipes.add(new SetCost(stack.getItem(), stack.getItemDamage(), null));
}
use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.
the class Alchemy method setOreDictCost.
@ZenMethod
public static void setOreDictCost(String name, String cost) {
GristSet grist = getGrist(cost);
if (grist == null)
return;
recipes.add(new SetCost(name, OreDictionary.WILDCARD_VALUE, grist));
}
use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.
the class Alchemy method setCost.
@ZenMethod
public static void setCost(IItemStack iStack, String cost) {
ItemStack stack = (ItemStack) iStack.getInternal();
GristSet grist = getGrist(cost);
if (grist == null)
return;
recipes.add(new SetCost(stack.getItem(), stack.getItemDamage(), grist));
}
use of stanhebben.zenscript.annotations.ZenMethod in project Minestuck by mraof.
the class Combinations method removeOreDictRecipe.
@ZenMethod
public static void removeOreDictRecipe(IItemStack input1, String input2, String mode) {
ItemStack stack = (ItemStack) input1.getInternal();
recipes.add(new SetRecipe(stack.getItem(), stack.getItemDamage(), input2, OreDictionary.WILDCARD_VALUE, getMode(mode), null));
}
Aggregations