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

java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.recipe.ActionRecipeBase<T>
All Implemented Interfaces:
IAction, IRuntimeAction
Direct Known Subclasses:
ActionAddRecipe, ActionRemoveAll, ActionRemoveRecipe, ActionRemoveRecipeByModid, ActionRemoveRecipeByName, ActionRemoveRecipeByRegex

public abstract class ActionRecipeBase<T extends net.minecraft.world.item.crafting.Recipe<?>> extends CraftTweakerAction implements IRuntimeAction
  • Constructor Details

  • Method Details

    • getManager

      public IRecipeManager<T> getManager()
    • getRecipes

      public Map<net.minecraft.resources.ResourceLocation,T> getRecipes()
      Gets the recipes for the manager type. This should only be used to view recipes, if you need to change the map, use getRecipeMutator() In the future this method will either be removed or made to return an immutable map.
      Returns:
      A map of name to recipe for the manager type.
    • getRecipeMutator

      public RecipeList<T> getRecipeMutator()
      Gets a RecipeList for this manager, which helps ensure that changes are applied to all recipe maps that vanilla has.
      Returns:
      A RecipeList for the recipe manager type.
    • getRecipeType

      public net.minecraft.world.item.crafting.RecipeType<T> getRecipeType()
    • getRecipeTypeName

      public net.minecraft.resources.ResourceLocation getRecipeTypeName()