Interface AttributeModifier
- All Superinterfaces:
Keyed,ResourceKeyed
Represents a modifier to a value in a
Attribute which is transformed
by an AttributeOperation.
Modifiers are usually found on ItemStacks.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a builder class to createAttributeModifiers. -
Method Summary
Modifier and TypeMethodDescriptiondoubleamount()Gets the amount this attribute will be modified by.static AttributeModifier.Builderbuilder()Creates a newAttributeModifier.Builderto create anAttributeModifier.Gets this modifier's operation.Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
Method Details
-
builder
Creates a newAttributeModifier.Builderto create anAttributeModifier.- Returns:
- The new builder
-
operation
AttributeOperation operation()Gets this modifier's operation.- Returns:
- The operation
-
amount
double amount()Gets the amount this attribute will be modified by.- Returns:
- The amount
-