初始化项目

This commit is contained in:
yhy
2026-07-11 22:13:14 +08:00
commit 67461082a5
53 changed files with 5568 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
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;
}
}