Class ActionRemoveGenericRecipe
java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.recipe.generic.ActionWholeRegistryBase
com.blamejared.crafttweaker.api.action.recipe.generic.ActionRemoveGenericRecipeBase
com.blamejared.crafttweaker.api.action.recipe.generic.ActionRemoveGenericRecipe
- All Implemented Interfaces:
IAction,IRuntimeAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Predicate<net.minecraft.world.item.crafting.Recipe<?>> -
Constructor Summary
ConstructorsConstructorDescriptionActionRemoveGenericRecipe(Predicate<net.minecraft.world.item.crafting.Recipe<?>> removePredicate) ActionRemoveGenericRecipe(Predicate<net.minecraft.world.item.crafting.Recipe<?>> removePredicate, Supplier<String> describeFunction) -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Gets a human-readable description of the action.protected booleanshouldRemove(net.minecraft.world.item.crafting.Recipe<?> recipe) Methods inherited from class com.blamejared.crafttweaker.api.action.recipe.generic.ActionRemoveGenericRecipeBase
applyMethods inherited from class com.blamejared.crafttweaker.api.action.recipe.generic.ActionWholeRegistryBase
getRecipeLists, getRecipesByType, makeRecipeListMethods 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
assertLoader, getDeclaredScriptPosition, logger, shouldApplyOn, systemName, validate
-
Field Details
-
removePredicate
-
describeFunction
-
-
Constructor Details
-
ActionRemoveGenericRecipe
public ActionRemoveGenericRecipe(Predicate<net.minecraft.world.item.crafting.Recipe<?>> removePredicate) -
ActionRemoveGenericRecipe
-
-
Method Details
-
describe
Description copied from interface:IActionGets 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
nullor otherwise empty description for the action: doing so will raise an error at runtime.- Returns:
- A description of the current action.
-
shouldRemove
protected boolean shouldRemove(net.minecraft.world.item.crafting.Recipe<?> recipe) - Specified by:
shouldRemovein classActionRemoveGenericRecipeBase
-