Class ActionReplaceRecipe<T extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.recipe.replace.ActionReplaceRecipe<T>
All Implemented Interfaces:
IAction, IRuntimeAction

public final class ActionReplaceRecipe<T extends net.minecraft.world.item.crafting.Recipe<?>> extends CraftTweakerAction implements IRuntimeAction
  • Method Details

    • apply

      public void apply()
      Description copied from interface: IAction
      Applies the action, executing all code necessary.
      Specified by:
      apply in interface IAction
    • describe

      public String describe()
      Description copied from interface: IAction
      Gets a human-readable description of the action.

      This message is used for logging and to surface information to the user when something goes wrong. It is thus customary to describe the action as accurately as possible without being too verbose.

      It is not allowed to return a null or otherwise empty description for the action: doing so will raise an error at runtime.

      Specified by:
      describe in interface IAction
      Returns:
      A description of the current action.