Interface AttributeModifier
- All Superinterfaces:
Identifiable
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
.name()
Gets the attribute name.Gets this modifier's operation.Methods inherited from interface org.spongepowered.api.util.Identifiable
uniqueId
-
Method Details
-
builder
Creates a newAttributeModifier.Builder
to create anAttributeModifier
.- Returns:
- The new builder
-
name
String name()Gets the attribute name.- Returns:
- The name
-
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
-