Class BrewingRecipe
java.lang.Object
net.neoforged.neoforge.common.brewing.BrewingRecipe
- All Implemented Interfaces:
IBrewingRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.world.item.crafting.Ingredient
private final net.minecraft.world.item.crafting.Ingredient
private final net.minecraft.world.item.ItemStack
-
Constructor Summary
ConstructorsConstructorDescriptionBrewingRecipe
(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient
getInput()
net.minecraft.world.item.ItemStack
net.minecraft.world.item.ItemStack
getOutput
(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack ingredient) Returns the output when the passed input is brewed with the passed ingredient.boolean
isIngredient
(net.minecraft.world.item.ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.boolean
isInput
(net.minecraft.world.item.ItemStack stack) Returns true is the passed ItemStack is an input for this recipe.
-
Field Details
-
input
private final net.minecraft.world.item.crafting.Ingredient input -
ingredient
private final net.minecraft.world.item.crafting.Ingredient ingredient -
output
private final net.minecraft.world.item.ItemStack output
-
-
Constructor Details
-
BrewingRecipe
public BrewingRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output)
-
-
Method Details
-
isInput
public boolean isInput(net.minecraft.world.item.ItemStack stack) Description copied from interface:IBrewingRecipe
Returns true is the passed ItemStack is an input for this recipe. "Input" being the item that goes in one of the three bottom slots of the brewing stand (e.g: water bottle)- Specified by:
isInput
in interfaceIBrewingRecipe
-
getOutput
public net.minecraft.world.item.ItemStack getOutput(net.minecraft.world.item.ItemStack input, net.minecraft.world.item.ItemStack ingredient) Description copied from interface:IBrewingRecipe
Returns the output when the passed input is brewed with the passed ingredient. Empty if invalid input or ingredient.- Specified by:
getOutput
in interfaceIBrewingRecipe
-
getInput
public net.minecraft.world.item.crafting.Ingredient getInput() -
getIngredient
public net.minecraft.world.item.crafting.Ingredient getIngredient() -
getOutput
public net.minecraft.world.item.ItemStack getOutput() -
isIngredient
public boolean isIngredient(net.minecraft.world.item.ItemStack ingredient) Description copied from interface:IBrewingRecipe
Returns true if the passed ItemStack is an ingredient for this recipe. "Ingredient" being the item that goes in the top slot of the brewing stand (e.g: nether wart)- Specified by:
isIngredient
in interfaceIBrewingRecipe
-