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.attribute.AttributeInstance;

Link to g-

Name: addPermanentModifier

Return Type: void

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

Link to g--1

Name: addTransientModifier

Return Type: void

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

Link to g--2

Name: getModifier

Return Type: AttributeModifier

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

Link to g--3

Name: hasModifier

Return Type: boolean

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

Link to g--4

Name: removeModifier

Return Type: void

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

Link to g--5

Name: removeModifier

Return Type: void

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