Class PlayerAttributeModifier
java.lang.Object
studio.magemonkey.fabled.api.player.PlayerAttributeModifier
Represents player-specific data for attributes, a replacement of bonus attribute
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerAttributeModifier
(String name, double amount, Operation operation, boolean persistent) Initializes a new PlayerAttributeModifier. -
Method Summary
-
Constructor Details
-
PlayerAttributeModifier
Initializes a new PlayerAttributeModifier. Used for modifying player attribute for a period of time- Parameters:
name
- The group name of this modifieramount
- The amount of value used for operation lateroperation
- The Operation typepersistent
- If this is set to true, this modifier will not be removed when player change class or change world.
-
-
Method Details
-
applyOn
public double applyOn(double value) -
getUUID
-
getName
-
getAmount
public double getAmount() -
getOperation
-
isPersistent
public boolean isPersistent()
-