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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets aRecipeListfor this manager, which helps ensure that changes are applied to all recipe maps that vanilla has.Gets the recipes for the manager type.net.minecraft.world.item.crafting.RecipeType<T>net.minecraft.resources.ResourceLocationMethods inherited from class com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
systemNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.action.base.IAction
apply, assertLoader, describe, getDeclaredScriptPosition, logger, shouldApplyOn, systemName, validate
-
Constructor Details
-
ActionRecipeBase
-
-
Method Details
-
getManager
-
getRecipes
Gets the recipes for the manager type. This should only be used to view recipes, if you need to change the map, usegetRecipeMutator()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
Gets aRecipeListfor this manager, which helps ensure that changes are applied to all recipe maps that vanilla has.- Returns:
- A
RecipeListfor the recipe manager type.
-
getRecipeType
-
getRecipeTypeName
public net.minecraft.resources.ResourceLocation getRecipeTypeName()
-