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

All Implemented Interfaces:
IAction, IRuntimeAction
Direct Known Subclasses:
ActionRemoveRecipeByOutput, ActionRemoveRecipeByOutputInput

public class ActionRemoveRecipe<T extends net.minecraft.world.item.crafting.Recipe<?>> extends ActionRecipeBase<T>
  • Field Details

    • removePredicate

      protected final Predicate<T extends net.minecraft.world.item.crafting.Recipe<?>> removePredicate
    • describeFunction

      protected Function<ActionRecipeBase<T extends net.minecraft.world.item.crafting.Recipe<?>>,String> describeFunction
  • Constructor Details

  • Method Details

    • apply

      public void apply()
      Description copied from interface: IAction
      Applies the action, executing all code necessary.
    • 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.

      Returns:
      A description of the current action.
    • describeDefaultRemoval

      public ActionRemoveRecipe<T> describeDefaultRemoval(CommandStringDisplayable output)