All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.aurelium.auraskills.api.damage.DamageModifier Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package dev.aurelium.auraskills.api.damage;

public class DamageModifier {

    private final double value;
    private final Operation operation;

    public DamageModifier(double value, Operation operation) {
        this.operation = operation;
        this.value = value;
    }

    public double value() {
        return value;
    }

    public Operation operation() {
        return operation;
    }

    public static DamageModifier none() {
        return new DamageModifier(0.0, Operation.NONE);
    }

    public enum Operation {

        MULTIPLY,
        ADD_BASE,
        ADD_COMBINED,
        NONE

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy