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
static create(id as ResourceLocation, amount as double, operation as Operation) as AttributeModifier
Creates a new AttributeModifier
Returns: the new attribute modifier
Parameters:
amount: double
Type: double
- the amount of this attribute modifier
Return Type:
AttributeModifier
Getter
Gets the ID of this AttributeModifier.
Return Type:
ResourceLocation
Getter
Gets the operation of this AttributeModifier.
Return Type:
AttributeOperation