Class CraftTweakerAction
- All Implemented Interfaces:
IAction
- Direct Known Subclasses:
ActionAddDataReceiver,ActionBatchReplacement,ActionLootModifier,ActionModifyAttribute,ActionRecipeBase,ActionRegisterEvent,ActionReplaceRecipe,ActionSetBlockProperty,ActionSetBurnTime,ActionSetCauldronInteraction,ActionSetCompostable,ActionSetItemProperty,ActionTag,ActionTooltipBase,ActionTradeBase,ActionWholeRegistryBase
IMPORTANT
This is not for usage outside of CraftTweaker: it should not be considered public API. This class is published as part of it just because actions are considered API. Integration writers should not attempt to extend this class!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the name of the system that is responsible for the execution of the action.Methods 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, validate
-
Constructor Details
-
CraftTweakerAction
public CraftTweakerAction()
-
-
Method Details
-
systemName
Description copied from interface:IActionGets the name of the system that is responsible for the execution of the action.The system usually corresponds to the name of the mod that created the action and is thus attempting to apply it. For example, adding a recipe is done through CraftTweaker, so the system name is
"CraftTweaker". Mods that have various components or would like to separate various integrations from each other can return more complex strings. In other words, if the class that implements this interface belongs to mod Foo, then the system name should be"Foo"(or"Foo-Bar"where Bar is the name of the subsystem) in almost all cases.Note that the system name will be used for logging, therefore it is suggested to avoid overly verbose names or acronyms that are not widely known. Returning
nullor an empty name is disallowed.- Specified by:
systemNamein interfaceIAction- Returns:
- The name of the system that is responsible for this action.
-