Class ActionUnknownTagModify
java.lang.Object
com.blamejared.crafttweaker.api.action.internal.CraftTweakerAction
com.blamejared.crafttweaker.api.action.tag.ActionTag<UnknownTag,UnknownTagManager>
com.blamejared.crafttweaker.api.action.tag.unknown.ActionUnknownTag
com.blamejared.crafttweaker.api.action.tag.unknown.ActionUnknownTagModify
- All Implemented Interfaces:
IAction,IRuntimeAction
- Direct Known Subclasses:
ActionUnknownTagAdd,ActionUnknownTagRemove
-
Constructor Summary
ConstructorsConstructorDescriptionActionUnknownTagModify(UnknownTag mcTag, List<net.minecraft.resources.ResourceLocation> values) -
Method Summary
Methods inherited from class com.blamejared.crafttweaker.api.action.tag.unknown.ActionUnknownTag
tagMethods inherited from class com.blamejared.crafttweaker.api.action.tag.ActionTag
getType, id, makeHolder, manager, mcTagMethods 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, shouldApplyOn, systemName
-
Constructor Details
-
ActionUnknownTagModify
public ActionUnknownTagModify(UnknownTag mcTag, List<net.minecraft.resources.ResourceLocation> values)
-
-
Method Details
-
values
-
holderValues
-
validate
public boolean validate(org.apache.logging.log4j.Logger logger) Description copied from interface:IActionValidates the action, ensuring no erroneous information is present.Implementations should validate all action information and log errors using the provided
Loggerif anything is incorrect. It is highly suggested to specify exactly what is wrong in the most precise yet brief way possible, to ensure script writers know why their actions are not being applied.If validation fails for whatever reason,
IAction.apply()will not be called.- Specified by:
validatein interfaceIAction- Overrides:
validatein classActionTag<UnknownTag,UnknownTagManager> - Parameters:
logger- Logger object on which to log errors or warnings.- Returns:
- Whether the action is valid (
true) or not (false).
-
describeValues
-