Class PotionMix

java.lang.Object
io.papermc.paper.potion.PotionMix
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, Keyed

@NonExtendable public class PotionMix extends Object implements Keyed
Represents a potion mix made in a Brewing Stand.
  • Constructor Details

  • Method Details

    • getKey

      @NotNull public NamespacedKey getKey()
      Description copied from interface: Keyed
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's key
    • getResult

      @NotNull public ItemStack getResult()
      Gets the resulting itemstack after the brew has finished.
      Returns:
      the result itemstack
    • getInput

      @NotNull public RecipeChoice getInput()
      Gets the input for the bottom 3 slots in the brewing stand.
      Returns:
      the bottom 3 slot ingredients
    • getIngredient

      @NotNull public RecipeChoice getIngredient()
      Gets the ingredient in the top slot of the brewing stand.
      Returns:
      the top slot input
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object