Interface AttributeModifier
-
- All Superinterfaces:
Identifiable
public interface AttributeModifier extends Identifiable
Represents a modifier to a value in aAttributewhich is transformed by anAttributeOperation.Modifiers are usually found on
ItemStacks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAttributeModifier.BuilderRepresents a builder class to createAttributeModifiers.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleamount()Gets the amount this attribute will be modified by.static AttributeModifier.Builderbuilder()Creates a newAttributeModifier.Builderto create anAttributeModifier.Stringname()Gets the attribute name.AttributeOperationoperation()Gets this modifier's operation.-
Methods inherited from interface org.spongepowered.api.util.Identifiable
uniqueId
-
-
-
-
Method Detail
-
builder
static AttributeModifier.Builder 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
-
-