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 ItemStack
s.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents a builder class to createAttributeModifier
s. -
Method Summary
Modifier and TypeMethodDescriptiondouble
amount()
Gets the amount this attribute will be modified by.static AttributeModifier.Builder
builder()
Creates a newAttributeModifier.Builder
to create anAttributeModifier
.Gets this modifier's operation.Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
Method Details
-
builder
Creates a newAttributeModifier.Builder
to 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
-