接口 IBrewingRecipe
- 所有已知实现类:
BrewingRecipe
public interface IBrewingRecipe
Interface for more flexible brewing recipes.
Register using RegisterBrewingRecipesEvent
and PotionBrewing.Builder.addRecipe(IBrewingRecipe)
.
-
方法概要
修饰符和类型方法说明Returns the output when the passed input is brewed with the passed ingredient.boolean
isIngredient
(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.boolean
Returns true is the passed ItemStack is an input for this recipe.
-
方法详细资料
-
isInput
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) -
isIngredient
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) -
getOutput
Returns the output when the passed input is brewed with the passed ingredient. Empty if invalid input or ingredient.
-