68 lines
1.6 KiB
Java
68 lines
1.6 KiB
Java
package com.io.yaohun.myitems.api;
|
|
|
|
public class DamageResult {
|
|
|
|
private final boolean miss;
|
|
private final boolean crit;
|
|
private final boolean penetration;
|
|
private final boolean block;
|
|
private final boolean vampire;
|
|
private final double damage;
|
|
private final double reflectDamage;
|
|
private final double healAmount;
|
|
|
|
public DamageResult(boolean miss, boolean crit, double damage) {
|
|
this(miss, crit, false, false, false, damage, 0.0D, 0.0D);
|
|
}
|
|
|
|
public DamageResult(boolean miss,
|
|
boolean crit,
|
|
boolean penetration,
|
|
boolean block,
|
|
boolean vampire,
|
|
double damage,
|
|
double reflectDamage,
|
|
double healAmount) {
|
|
this.miss = miss;
|
|
this.crit = crit;
|
|
this.penetration = penetration;
|
|
this.block = block;
|
|
this.vampire = vampire;
|
|
this.damage = damage;
|
|
this.reflectDamage = reflectDamage;
|
|
this.healAmount = healAmount;
|
|
}
|
|
|
|
public boolean isMiss() {
|
|
return miss;
|
|
}
|
|
|
|
public boolean isCrit() {
|
|
return crit;
|
|
}
|
|
|
|
public boolean isPenetration() {
|
|
return penetration;
|
|
}
|
|
|
|
public boolean isBlock() {
|
|
return block;
|
|
}
|
|
|
|
public boolean isVampire() {
|
|
return vampire;
|
|
}
|
|
|
|
public double getDamage() {
|
|
return damage;
|
|
}
|
|
|
|
public double getReflectDamage() {
|
|
return reflectDamage;
|
|
}
|
|
|
|
public double getHealAmount() {
|
|
return healAmount;
|
|
}
|
|
}
|