AttributeModifier
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
Getter
Gets the amount of this AttributeModifier.
Return Type:
double
amount() as double
Gets the amount of this AttributeModifier.
Returns: The amount of this AttributeModifier.
Return Type:
double
static create(name as string, amount as double, operation as Operation, uuid as string) as AttributeModifier
Creates a new AttributeModifier
Returns: the new attribute modifier
Parameters:
name: string
Type: string
- the name of this attribute modifier amount: double
Type: double
- the amount of this attribute modifier uuid: string
Type: string
- the uuid of this attribute modifier, if omitted, it will use a random one.
Return Type:
AttributeModifier
Getter
Gets the ID of this AttributeModifier.
Return Type:
string
id() as string
Gets the ID of this AttributeModifier.
Returns: The ID of this AttributeModifier
Return Type:
string
Getter
Gets the name of this AttributeModifier.
Return Type:
string
name() as string
Gets the name of this AttributeModifier.
Returns: The name of this AttributeModifier.
Return Type:
string
Getter
Gets the operation of this AttributeModifier.
Return Type:
AttributeOperation
operation() as Operation
Gets the operation of this AttributeModifier.
Returns: The operation of this AttributeModifier.
Return Type:
AttributeOperation