Class ActionTooltipBase

java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.item.tooltip.ActionTooltipBase
All Implemented Interfaces:
IAction, IRuntimeAction, IUndoableAction
Direct Known Subclasses:
ActionAddShiftedTooltip, ActionAddTooltip, ActionClearTooltip, ActionModifyShiftedTooltip, ActionModifyTooltip, ActionRemoveRegexTooltip

public abstract class ActionTooltipBase extends CraftTweakerAction implements IUndoableAction
  • Field Details

  • Constructor Details

    • ActionTooltipBase

      public ActionTooltipBase(IIngredient stack)
  • Method Details

    • getTooltip

      public LinkedList<ITooltipFunction> getTooltip()
    • pruneTooltips

      protected void pruneTooltips()
    • 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.