Class Buff

java.lang.Object
studio.magemonkey.fabled.api.util.Buff

public class Buff extends Object
Represents a buff given to an entity
  • Constructor Details

    • Buff

      @Deprecated public Buff(double value, boolean multiplier)
      Deprecated.
      Constructs a new buff
      Parameters:
      value - value of the buff
      multiplier - whether the value is a multiplier or a flat bonus
    • Buff

      public Buff(String key, double value, boolean multiplier)
      Constructs a new buff
      Parameters:
      key - unique identifier for the buff to prevent overlap
      value - value of the buff
      multiplier - whether the value is a multiplier or a flat bonus
  • Method Details

    • getKey

      public String getKey()
    • getValue

      public double getValue()
    • isPercent

      public boolean isPercent()