Package io.papermc.paper.potion
Class PotionMix
java.lang.Object
io.papermc.paper.potion.PotionMix
- All Implemented Interfaces:
- net.kyori.adventure.key.Keyed,- Keyed
Represents a potion mix made in a Brewing Stand.
- 
Constructor SummaryConstructorsConstructorDescriptionPotionMix(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice ingredient) Creates a new potion mix.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGets the ingredient in the top slot of the brewing stand.getInput()Gets the input for the bottom 3 slots in the brewing stand.getKey()Return the namespaced identifier for this object.Gets the resulting itemstack after the brew has finished.inthashCode()toString()
- 
Constructor Details- 
PotionMixpublic PotionMix(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input, @NotNull @NotNull RecipeChoice ingredient) Creates a new potion mix. Add it to the server withPotionBrewer.addPotionMix(PotionMix).- Parameters:
- key- a unique key for the mix
- result- the resulting itemstack that will appear in the 3 bottom slots
- input- the input placed into the bottom 3 slots
- ingredient- the ingredient placed into the top slot
 
 
- 
- 
Method Details- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
- 
getResultGets the resulting itemstack after the brew has finished.- Returns:
- the result itemstack
 
- 
getInputGets the input for the bottom 3 slots in the brewing stand.- Returns:
- the bottom 3 slot ingredients
 
- 
getIngredientGets the ingredient in the top slot of the brewing stand.- Returns:
- the top slot input
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-