Interface AttributeModifier
-
- All Superinterfaces:
Identifiable
public interface AttributeModifier extends Identifiable
Represents a modifier to a value in aAttribute
which is transformed by anAttributeOperation
.Modifiers are usually found on
ItemStack
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AttributeModifier.Builder
Represents a builder class to createAttributeModifier
s.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description double
amount()
Gets the amount this attribute will be modified by.static AttributeModifier.Builder
builder()
Creates a newAttributeModifier.Builder
to create anAttributeModifier
.String
name()
Gets the attribute name.AttributeOperation
operation()
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.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
-
-