类 AttributeModifier
java.lang.Object
org.bukkit.attribute.AttributeModifier
- 所有已实现的接口:
ConfigurationSerializable
Concrete implementation of an attribute modifier.
-
嵌套类概要
-
构造器概要
构造器说明AttributeModifier
(String name, double amount, AttributeModifier.Operation operation) AttributeModifier
(UUID uuid, String name, double amount, AttributeModifier.Operation operation) -
方法概要
修饰符和类型方法说明static AttributeModifier
deserialize
(Map<String, Object> args) double
Get the amount by which this modifier will apply itsAttributeModifier.Operation
.getName()
Get the name of this modifier.Get the operation this modifier will apply.Get the unique ID for this modifier.Creates a Map representation of this class.
-
构造器详细资料
-
AttributeModifier
-
AttributeModifier
public AttributeModifier(UUID uuid, String name, double amount, AttributeModifier.Operation operation)
-
-
方法详细资料
-
getUniqueId
Get the unique ID for this modifier.- 返回:
- unique id
-
getName
Get the name of this modifier.- 返回:
- name
-
getAmount
public double getAmount()Get the amount by which this modifier will apply itsAttributeModifier.Operation
.- 返回:
- modification amount
-
getOperation
Get the operation this modifier will apply.- 返回:
- operation
-
serialize
从接口复制的说明:ConfigurationSerializable
Creates a Map representation of this class.This class must provide a method to restore this class, as defined in the
ConfigurationSerializable
interface javadocs.- 指定者:
serialize
在接口中ConfigurationSerializable
- 返回:
- Map containing the current state of this class
-
deserialize
-