Interface AttributeModifier.Builder
- 
- All Superinterfaces:
- AbstractBuilder<AttributeModifier>,- Buildable.Builder<AttributeModifier>,- Builder<AttributeModifier,AttributeModifier.Builder>,- ResettableBuilder<AttributeModifier,AttributeModifier.Builder>
 - Enclosing interface:
- AttributeModifier
 
 public static interface AttributeModifier.Builder extends Builder<AttributeModifier,AttributeModifier.Builder> Represents a builder class to createAttributeModifiers.- See Also:
- AttributeModifier
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AttributeModifier.Builderamount(double amount)Sets the amount of the attribute modifier.AttributeModifierbuild()Build the attribute modifier from the values in this builder.AttributeModifier.Builderid(java.util.UUID id)Sets the id of this attribute modifier.AttributeModifier.Buildername(java.lang.String name)Sets the name of this attribute modifier.default AttributeModifier.Builderoperation(java.util.function.Supplier<? extends AttributeOperation> operation)Sets the operation of this attribute modifier.AttributeModifier.Builderoperation(AttributeOperation operation)Sets the operation of this attribute modifier.default AttributeModifier.BuilderrandomId()Sets this attribute modifier to have a random id.
 
- 
- 
- 
Method Detail- 
idAttributeModifier.Builder id(java.util.UUID id) Sets the id of this attribute modifier.- Parameters:
- id- The id
- Returns:
- This builder
 
 - 
randomIddefault AttributeModifier.Builder randomId() Sets this attribute modifier to have a random id.- Returns:
- This builder
 
 - 
nameAttributeModifier.Builder name(java.lang.String name) Sets the name of this attribute modifier.The name of an attribute modifier corresponds to the translation displayed when listing all the modifiers on an item. The format of the translations is attribute.name.yournamehere.- Parameters:
- name- The name
- Returns:
- This builder
 
 - 
operationdefault AttributeModifier.Builder operation(java.util.function.Supplier<? extends AttributeOperation> operation) Sets the operation of this attribute modifier.- Parameters:
- operation- The operation
- Returns:
- This builder
 
 - 
operationAttributeModifier.Builder operation(AttributeOperation operation) Sets the operation of this attribute modifier.- Parameters:
- operation- The operation
- Returns:
- This builder
 
 - 
amountAttributeModifier.Builder amount(double amount) Sets the amount of the attribute modifier.- Parameters:
- amount- The amount
- Returns:
- This builder
 
 - 
buildAttributeModifier build() Build the attribute modifier from the values in this builder.- Specified by:
- buildin interface- AbstractBuilder<AttributeModifier>
- Specified by:
- buildin interface- Buildable.Builder<AttributeModifier>
- Returns:
- The attribute modifier.
 
 
- 
 
-