Class BrewingRecipe

java.lang.Object
net.neoforged.neoforge.common.brewing.BrewingRecipe
All Implemented Interfaces:
IBrewingRecipe

public class BrewingRecipe extends Object implements IBrewingRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final net.minecraft.world.item.crafting.Ingredient
     
    private final net.minecraft.world.item.crafting.Ingredient
     
    private final net.minecraft.world.item.ItemStack
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrewingRecipe(net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack output)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.crafting.Ingredient
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface IBrewingRecipe
    • 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 interface IBrewingRecipe
    • 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 interface IBrewingRecipe