Class IRecipeHandler.ReplacementNotSupportedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.blamejared.crafttweaker.api.recipe.handler.IRecipeHandler.ReplacementNotSupportedException
All Implemented Interfaces:
Serializable
Enclosing interface:
IRecipeHandler<T extends net.minecraft.world.item.crafting.Recipe<?>>

public static class IRecipeHandler.ReplacementNotSupportedException extends Exception
Exception that indicates that the current recipe handler does not support replacing for the targeted recipe class.

Refer to IRecipeHandler.replaceIngredients(IRecipeManager, Recipe, List) for more information regarding the exact semantics of this exception.

See Also:
  • Constructor Details

    • ReplacementNotSupportedException

      public ReplacementNotSupportedException(String message)
      Constructs a new exception with the specified detail message.

      The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

      Parameters:
      message - The detail message, which is saved for later retrieval by the Throwable.getMessage() method.
    • ReplacementNotSupportedException

      public ReplacementNotSupportedException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

      Parameters:
      message - The detail message, which is saved for later retrieval by the Throwable.getMessage() method.
      cause - The cause, which is saved for later retrieval by the Throwable.getCause() method. null is allowed and indicates that the cause is not available or not known.