public class AttributeModifier extends Object implements ConfigurationSerializable
Modifier and Type | Class and Description |
---|---|
static class |
AttributeModifier.Operation
Enumerable operation to be applied.
|
Constructor and Description |
---|
AttributeModifier(String name,
double amount,
AttributeModifier.Operation operation) |
AttributeModifier(UUID uuid,
String name,
double amount,
AttributeModifier.Operation operation) |
Modifier and Type | Method and Description |
---|---|
static AttributeModifier |
deserialize(Map<String,Object> args) |
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.
|
UUID |
getUniqueId()
Get the unique ID for this modifier.
|
Map<String,Object> |
serialize()
Creates a Map representation of this class.
|
public AttributeModifier(String name, double amount, AttributeModifier.Operation operation)
public AttributeModifier(UUID uuid, String name, double amount, AttributeModifier.Operation operation)
public UUID getUniqueId()
public String getName()
public double getAmount()
AttributeModifier.Operation
.public AttributeModifier.Operation getOperation()
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 ConfigurationSerializable
public static AttributeModifier deserialize(Map<String,Object> args)
Copyright © 2016. All rights reserved.