类 BrewingRecipe

java.lang.Object
net.minecraftforge.common.brewing.BrewingRecipe
所有已实现的接口:
IBrewingRecipe

public class BrewingRecipe extends Object implements IBrewingRecipe
  • 字段详细资料

    • input

      @NotNull private final @NotNull Ingredient input
    • ingredient

      @NotNull private final @NotNull Ingredient ingredient
    • output

      @NotNull private final @NotNull ItemStack output
  • 构造器详细资料

  • 方法详细资料

    • isInput

      public boolean isInput(@NotNull @NotNull ItemStack stack)
      从接口复制的说明: 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)
      指定者:
      isInput 在接口中 IBrewingRecipe
    • getOutput

      public ItemStack getOutput(ItemStack input, ItemStack ingredient)
      从接口复制的说明: IBrewingRecipe
      Returns the output when the passed input is brewed with the passed ingredient. Empty if invalid input or ingredient.
      指定者:
      getOutput 在接口中 IBrewingRecipe
    • getInput

      public Ingredient getInput()
    • getIngredient

      public Ingredient getIngredient()
    • getOutput

      public ItemStack getOutput()
    • isIngredient

      public boolean isIngredient(ItemStack ingredient)
      从接口复制的说明: 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)
      指定者:
      isIngredient 在接口中 IBrewingRecipe