AttributeInstance
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.
import crafttweaker.api.entity.AttributeInstance;
Methods
Return Type: void
AttributeInstance.applyNonPersistentModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Return Type: void
AttributeInstance.applyPersistentModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Return Type: AttributeModifier?
AttributeInstance.getModifier(uuid as string) as AttributeModifier?
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description No Description Provided |
Return Type: boolean
AttributeInstance.hasModifier(modifier as AttributeModifier) as boolean
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Return Type: void
AttributeInstance.removeModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Return Type: void
AttributeInstance.removeModifier(uuid as string) as void
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description No Description Provided |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
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 |