Brewing

Diese Klasse importieren

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
Copy
import crafttweaker.api.Brewing;

Methoden

addRecipe

Adds a new brewing recipe to the Brewing Stand.

Return Type: void

ZenScript
Copy
// Brewing.addRecipe(output as IItemStack, reagent as IIngredient, input as IIngredient) as void

brewing.addRecipe(<item:minecraft:dirt>, <item:minecraft:apple>, <item:minecraft:arrow>);
ParameterTypeBeschreibung
outputIItemStackThe item that the recipe outputs.
reagentIIngredientThe reagent that is put in the top slot of the Brewing Stand.
inputIIngredientThe Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
removeRecipe

Removes an ItemStack to ItemStack recipe from the Brewing Stand. These are mainly potions added by mods.

Return Type: void

ZenScript
Copy
// Brewing.removeRecipe(output as IItemStack, reagent as IItemStack, input as IItemStack) as void

brewing.removeRecipe(<item:minecraft:glass>, <item:minecraft:diamond>, <item:minecraft:stick>);
ParameterTypeBeschreibung
outputIItemStackThe ItemStack that the recipe outputs.
reagentIItemStackThe reagent that is put in the top slot of the Brewing Stand.
inputIItemStackThe Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
removeRecipe

Removes a Potion to Potion recipe from the Brewing Stand. These are mainly the default vanilla recipes.

Return Type: void

ZenScript
Copy
// Brewing.removeRecipe(output as MCPotion, reagent as IItemStack, input as MCPotion) as void

brewing.removeRecipe(<potion:minecraft:thick>, <item:minecraft:glowstone_dust>, <potion:minecraft:water>);
ParameterTypeBeschreibung
outputMCPotionThe Potion that the recipe outputs.
reagentIItemStackThe reagent that is put in the top slot of the Brewing Stand.
inputMCPotionThe Potion ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
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

Return Type: void

ZenScript
Copy
// Brewing.removeRecipeByInput(input as IItemStack) as void

brewing.removeRecipeByInput(<item:minecraft:glass>);
ParameterTypeBeschreibung
inputIItemStackThe input of the recipes to remove.
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.

Return Type: void

ZenScript
Copy
Brewing.removeRecipeByInputPotion(input as MCPotion) as void
ParameterTypeBeschreibung
inputMCPotionThe input potion of the recipes to remove.
removeRecipeByOutputPotion

Removes recipes from the Brewing Stand based on their output Potion. These are mainly the default vanilla recipes.

Return Type: void

ZenScript
Copy
// Brewing.removeRecipeByOutputPotion(output as MCPotion) as void

brewing.removeRecipeByOutputPotion(<potion:minecraft:swiftness>);
ParameterTypeBeschreibung
outputMCPotionThe potion of the recipes to remove.
removeRecipeByReagent

Removes recipes from the Brewing Stand based on their Reagent (The item in the top slot).

Return Type: void

ZenScript
Copy
// Brewing.removeRecipeByReagent(reagent as IItemStack) as void

brewing.removeRecipeByReagent(<item:minecraft:golden_carrot>);
ParameterTypeBeschreibung
reagentIItemStackThe reagent of the recipes to remove.