AttributeInstance
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
addPermanentModifier(modifier as AttributeModifier)
Parameters:
modifier: AttributeModifier
Type: AttributeModifier
addTransientModifier(modifier as AttributeModifier)
Parameters:
modifier: AttributeModifier
Type: AttributeModifier
Getter
Return Type:
double
Setter
Parameters:
value: double
Type: double
baseValue() as double
Return Type:
double
baseValue(value as double)
Parameters:
value: double
Type: double
getModifier(uuid as UUID) as AttributeModifier
Parameters:
uuid: UUID
Type: UUID
Return Type:
AttributeModifier
getModifier(uuid as string) as AttributeModifier
Parameters:
uuid: string
Type: string
Return Type:
AttributeModifier
hasModifier(modifier as AttributeModifier) as bool
Parameters:
modifier: AttributeModifier
Type: AttributeModifier
Return Type:
bool
Getter
Return Type:
List<AttributeModifier>
modifiers() as List<AttributeModifier>
Return Type:
List<AttributeModifier>
removeModifier(modifier as UUID)
Parameters:
modifier: UUID
Type: UUID
removeModifier(uuid as string)
Parameters:
uuid: string
Type: string
Getter
Return Type:
double
value() as double
Return Type:
double