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 Copyimport crafttweaker.api.entity.attribute.AttributeInstance;
Methods
Link to methods
Name: addPermanentModifier
Return Type: void
ZenScript CopyAttributeInstance.addPermanentModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Name: addTransientModifier
Return Type: void
ZenScript CopyAttributeInstance.addTransientModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Name: getModifier
Return Type: AttributeModifier
ZenScript CopyAttributeInstance.getModifier(uuid as string) as AttributeModifier
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description No Description Provided |
Name: hasModifier
Return Type: boolean
ZenScript CopyAttributeInstance.hasModifier(modifier as AttributeModifier) as boolean
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Name: removeModifier
Return Type: void
ZenScript CopyAttributeInstance.removeModifier(modifier as AttributeModifier) as void
Parameter | Type | Description |
---|---|---|
Parameter modifier | Type AttributeModifier | Description No Description Provided |
Name: removeModifier
Return Type: void
ZenScript CopyAttributeInstance.removeModifier(uuid as string) as void
Parameter | Type | Description |
---|---|---|
Parameter uuid | Type string | Description No Description Provided |
Properties
Link to properties
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 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 |