Interface AttributeModifier.Builder
- All Superinterfaces:
AbstractBuilder<AttributeModifier>
,Builder<AttributeModifier,
,AttributeModifier.Builder> ResettableBuilder<AttributeModifier,
,AttributeModifier.Builder> ResourceKeyedBuilder<AttributeModifier,
AttributeModifier.Builder>
- Enclosing interface:
AttributeModifier
public static interface AttributeModifier.Builder
extends ResourceKeyedBuilder<AttributeModifier,AttributeModifier.Builder>
Represents a builder class to create
AttributeModifier
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionamount
(double amount) Sets the amount of the attribute modifier.build()
Build the attribute modifier from the values in this builder.default AttributeModifier.Builder
operation
(Supplier<? extends AttributeOperation> operation) Sets the operation of this attribute modifier.operation
(AttributeOperation operation) Sets the operation of this attribute modifier.Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
Method Details
-
operation
Sets the operation of this attribute modifier.- Parameters:
operation
- The operation- Returns:
- This builder
-
operation
Sets the operation of this attribute modifier.- Parameters:
operation
- The operation- Returns:
- This builder
-
amount
Sets the amount of the attribute modifier.- Parameters:
amount
- The amount- Returns:
- This builder
-
build
AttributeModifier build()Build the attribute modifier from the values in this builder.- Specified by:
build
in interfaceAbstractBuilder<AttributeModifier>
- Returns:
- The attribute modifier.
-