Brewing
Link to brewing
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.recipe.Brewing;
使用方式
Link to 使用方式
Name: addRecipe
Adds a new brewing recipe to the Brewing Stand.
ZenScript Copy// Brewing.addRecipe(output as IItemStack, reagent as IIngredient, input as IIngredient)
brewing.addRecipe(<item:minecraft:dirt>, <item:minecraft:apple>, <item:minecraft:arrow>);
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 IItemstack | 描述 The item that the recipe outputs. |
参数 reagent | 类型 材料(IIngredient) | 描述 The reagent that is put in the top slot of the Brewing Stand. |
参数 input(输入) | 类型 材料(IIngredient) | 描述 The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion. |
Name: removeRecipe
Removes an ItemStack to ItemStack recipe from the Brewing Stand. These are mainly potions added by mods.
ZenScript Copy// Brewing.removeRecipe(output as IItemStack, reagent as IItemStack, input as IItemStack)
brewing.removeRecipe(<item:minecraft:glass>, <item:minecraft:diamond>, <item:minecraft:stick>);
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 IItemstack | 描述 The ItemStack that the recipe outputs. |
参数 reagent | 类型 IItemstack | 描述 The reagent that is put in the top slot of the Brewing Stand. |
参数 input(输入) | 类型 IItemstack | 描述 The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion. |
Name: removeRecipe
Removes a Potion to Potion recipe from the Brewing Stand. These are mainly the default vanilla recipes.
ZenScript Copy// Brewing.removeRecipe(output as Potion, reagent as IItemStack, input as Potion)
brewing.removeRecipe(<potion:minecraft:thick>, <item:minecraft:glowstone_dust>, <potion:minecraft:water>);
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 Potion | 描述 The Potion that the recipe outputs. |
参数 reagent | 类型 IItemstack | 描述 The reagent that is put in the top slot of the Brewing Stand. |
参数 input(输入) | 类型 Potion | 描述 The Potion ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion. |
Name: removeRecipeByInput
Removes recipes from the Brewing Stand based on their Input (The ItemStack that goes in the bottom 3 slots). E.G. A water bottle in Vanilla brewing recipes
ZenScript Copy// Brewing.removeRecipeByInput(input as IItemStack)
brewing.removeRecipeByInput(<item:minecraft:glass>);
参数 | 类型 | 描述 |
---|---|---|
参数 input(输入) | 类型 IItemstack | 描述 The input of the recipes to remove. |
Name: removeRecipeByInputPotion
Removes recipes from the Brewing Stand based on their input Potion. These are mainly the default vanilla recipes. The input potion is the potion that is in the top slot of the Brewing Stand.
ZenScript CopyBrewing.removeRecipeByInputPotion(input as Potion)
参数 | 类型 | 描述 |
---|---|---|
参数 input(输入) | 类型 Potion | 描述 The input potion of the recipes to remove. |
Name: removeRecipeByOutputPotion
Removes recipes from the Brewing Stand based on their output Potion. These are mainly the default vanilla recipes.
ZenScript Copy// Brewing.removeRecipeByOutputPotion(output as Potion)
brewing.removeRecipeByOutputPotion(<potion:minecraft:swiftness>);
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 Potion | 描述 The potion of the recipes to remove. |
Name: removeRecipeByReagent
Removes recipes from the Brewing Stand based on their Reagent (The item in the top slot).
ZenScript Copy// Brewing.removeRecipeByReagent(reagent as IItemStack)
brewing.removeRecipeByReagent(<item:minecraft:golden_carrot>);
参数 | 类型 | 描述 |
---|---|---|
参数 reagent | 类型 IItemstack | 描述 The reagent of the recipes to remove. |