Interface IRecipeEvent.Pre

    • Method Detail

      • setMessage

        void setMessage​(String message)
        Parameters:
        message - the denial message shown when canceled.
      • getMessage

        String getMessage()
        Returns:
        the denial message.
      • getXpCost

        int getXpCost()
        Only for IAnvilRecipe
        Returns:
        the XP Cost of Anvil Recipe
      • setXpCost

        void setXpCost​(int xpCost)
        Sets the XP Cost of Anvil Recipe
        Parameters:
        xpCost - the XP Cost to set
      • getMaterialUsage

        int getMaterialUsage()
        Only for IAnvilRecipe
        Returns:
        the material usage of Anvil Recipe
      • setMaterialUsage

        void setMaterialUsage​(int materialUsage)
        Sets the material usage of Anvil Recipe
        Parameters:
        materialUsage - the material usage to set