Class PlayerStatModifier

java.lang.Object
studio.magemonkey.fabled.api.player.PlayerStatModifier

public class PlayerStatModifier extends Object
Represents player-specific data for stats, a replacement of bonus stats
  • Constructor Details

    • PlayerStatModifier

      public PlayerStatModifier(String name, double amount, Operation operation, boolean persistent)
      Initializes a new PlayerStatModifier. Used for modifying player stat for a period of time
      Parameters:
      name - The group name of this modifier
      amount - The amount of value used for operation later
      operation - The Operation type
      persistent - 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

      public UUID getUUID()
    • getName

      public String getName()
    • getAmount

      public double getAmount()
    • getOperation

      public Operation getOperation()
    • isPersistent

      public boolean isPersistent()