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 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.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.Builderto 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
-