Class CookingResult


  • public final class CookingResult
    extends java.lang.Object
    The result of fulfilling a CookingRecipe.
    • Constructor Detail

      • CookingResult

        public CookingResult​(ItemStackSnapshot result,
                             double experience)
        Creates a new CookingResult.

        Note that this may be replaced with a static of method in the future.

        Parameters:
        result - The result of the cooking recipe
        experience - The experience that should be created from this result
    • Method Detail

      • experience

        public double experience()
        Returns the amount of experience released after completing a recipe.
        Returns:
        The amount of experience released after fulfilling the requirements of a CookingRecipe
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object