ConfigurationSerializablepublic class AttributeModifier extends Object implements ConfigurationSerializable
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | AttributeModifier.Operation | Enumerable operation to be applied. | 
| Constructor | Description | 
|---|---|
| AttributeModifier(String name,
                 double amount,
                 AttributeModifier.Operation operation) | |
| AttributeModifier(UUID uuid,
                 String name,
                 double amount,
                 AttributeModifier.Operation operation) | |
| AttributeModifier(UUID uuid,
                 String name,
                 double amount,
                 AttributeModifier.Operation operation,
                 EquipmentSlot slot) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static AttributeModifier | deserialize(Map<String,Object> args) | |
| boolean | equals(Object other) | |
| double | getAmount() | Get the amount by which this modifier will apply its  AttributeModifier.Operation. | 
| String | getName() | Get the name of this modifier. | 
| AttributeModifier.Operation | getOperation() | Get the operation this modifier will apply. | 
| EquipmentSlot | getSlot() | Get the  EquipmentSlotthis AttributeModifier is active on,
 or null if this modifier is applicable for any slot. | 
| UUID | getUniqueId() | Get the unique ID for this modifier. | 
| int | hashCode() | |
| Map<String,Object> | serialize() | Creates a Map representation of this class. | 
| String | toString() | 
public AttributeModifier(@NotNull String name, double amount, @NotNull AttributeModifier.Operation operation)
public AttributeModifier(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation)
public AttributeModifier(@NotNull UUID uuid, @NotNull String name, double amount, @NotNull AttributeModifier.Operation operation, @Nullable EquipmentSlot slot)
@NotNull public UUID getUniqueId()
public double getAmount()
AttributeModifier.Operation.@NotNull public AttributeModifier.Operation getOperation()
@Nullable public EquipmentSlot getSlot()
EquipmentSlot this AttributeModifier is active on,
 or null if this modifier is applicable for any slot.@NotNull public Map<String,Object> serialize()
ConfigurationSerializable
 This class must provide a method to restore this class, as defined in
 the ConfigurationSerializable interface javadocs.
serialize in interface ConfigurationSerializableCopyright © 2020. All rights reserved.