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

public abstract class ActionBrewingBase extends CraftTweakerAction implements IUndoableAction
  • Field Details

    • recipes

      protected final List<net.minecraftforge.common.brewing.IBrewingRecipe> recipes
  • Constructor Details

    • ActionBrewingBase

      protected ActionBrewingBase(List<net.minecraftforge.common.brewing.IBrewingRecipe> recipes)
  • Method Details

    • shouldApplyOn

      public boolean shouldApplyOn(IScriptLoadSource source, org.apache.logging.log4j.Logger logger)
      Description copied from interface: IAction
      Determines whether an action should be applied for scripts loading in the given IScriptLoadSource.
      Specified by:
      shouldApplyOn in interface IAction
      Parameters:
      source - The IScriptLoadSource responsible for loading the scripts.
      logger - The Logger instance that should be used to log error messages if needed.
      Returns:
      If the action should be applied.