Enum Class FunctionBehaviour

java.lang.Object
java.lang.Enum<FunctionBehaviour>
com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
All Implemented Interfaces:
Serializable, Comparable<FunctionBehaviour>, Constable

public enum FunctionBehaviour extends Enum<FunctionBehaviour>
Since:
1.4.0
  • Enum Constant Details

    • ADDITION

      public static final FunctionBehaviour ADDITION
      Addition of values as defined by the parent attribute. Equivalent of EntityAttributeModifier.Operation.ADDITION.
    • MULTIPLY

      public static final FunctionBehaviour MULTIPLY
      Multiplication of parent attribute. Equivalent of EntityAttributeModifier.Operation.MULTIPLY_TOTAL.
  • Method Details

    • values

      public static FunctionBehaviour[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FunctionBehaviour valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static FunctionBehaviour of(byte id)
    • id

      public byte id()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FunctionBehaviour>