Class ActionBrewingBase
java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.brewing.ActionBrewingBase
- All Implemented Interfaces:
IAction,IRuntimeAction,IUndoableAction
- Direct Known Subclasses:
ActionAddBrewingRecipe,ActionRemoveBrewingRecipe,ActionRemoveBrewingRecipeByInput,ActionRemoveBrewingRecipeByPotionInput,ActionRemoveBrewingRecipeByPotionOutput,ActionRemoveBrewingRecipeByReagent,ActionRemovePotionBrewingRecipe
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedActionBrewingBase(List<net.minecraftforge.common.brewing.IBrewingRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldApplyOn(IScriptLoadSource source, org.apache.logging.log4j.Logger logger) Determines whether an action should be applied for scripts loading in the givenIScriptLoadSource.Methods 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, systemName, validateMethods inherited from interface com.blamejared.crafttweaker.api.action.base.IUndoableAction
describeUndo, undo
-
Field Details
-
recipes
-
-
Constructor Details
-
ActionBrewingBase
-
-
Method Details
-
shouldApplyOn
Description copied from interface:IActionDetermines whether an action should be applied for scripts loading in the givenIScriptLoadSource.- Specified by:
shouldApplyOnin interfaceIAction- Parameters:
source- TheIScriptLoadSourceresponsible for loading the scripts.logger- TheLoggerinstance that should be used to log error messages if needed.- Returns:
- If the action should be applied.
-