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