dev.aurelium.auraskills.api.damage.DamageModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of auraskills-api-bukkit Show documentation
Show all versions of auraskills-api-bukkit Show documentation
API for AuraSkills, the ultra-versatile RPG skills plugin for Minecraft
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
}
}