AttributeInstance

Link to attributeinstance

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.entity.AttributeInstance;

Link to applyNonPersistentModifier

Name: applyNonPersistentModifier

Return Type: void

ZenScript
Copy
AttributeInstance.applyNonPersistentModifier(modifier as AttributeModifier) as void
ParameterTypeDescription
Parameter
modifier
Type
AttributeModifier
Description
No Description Provided

Link to applyPersistentModifier

Name: applyPersistentModifier

Return Type: void

ZenScript
Copy
AttributeInstance.applyPersistentModifier(modifier as AttributeModifier) as void
ParameterTypeDescription
Parameter
modifier
Type
AttributeModifier
Description
No Description Provided

Name: getModifier

Return Type: AttributeModifier?

ZenScript
Copy
AttributeInstance.getModifier(uuid as string) as AttributeModifier?
ParameterTypeDescription
Parameter
uuid
Type
string
Description
No Description Provided

Name: hasModifier

Return Type: boolean

ZenScript
Copy
AttributeInstance.hasModifier(modifier as AttributeModifier) as boolean
ParameterTypeDescription
Parameter
modifier
Type
AttributeModifier
Description
No Description Provided

Name: removeModifier

Return Type: void

ZenScript
Copy
AttributeInstance.removeModifier(modifier as AttributeModifier) as void
ParameterTypeDescription
Parameter
modifier
Type
AttributeModifier
Description
No Description Provided

Name: removeModifier

Return Type: void

ZenScript
Copy
AttributeInstance.removeModifier(uuid as string) as void
ParameterTypeDescription
Parameter
uuid
Type
string
Description
No Description Provided
名称TypeHas GetterHas SetterDescription
名称
baseValue
Type
double
Has Getter
true
Has Setter
true
Description
No Description Provided
名称
modifiers
Type
stdlib.List<AttributeModifier>
Has Getter
true
Has Setter
false
Description
No Description Provided
名称
value
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided