删除冗余方法

This commit is contained in:
17146 2025-06-30 16:00:19 +08:00 committed by Light_Quanta
parent c4d15c32c3
commit eff789c8af
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -7,7 +7,6 @@ public class ProjectileWeapon extends VehicleWeapon {
public float headShot, damage, bypassArmorRate;
public boolean zoom;
public int jhpLevel, heLevel;
public ProjectileWeapon headShot(float headShot) {
this.headShot = headShot;
@ -34,24 +33,12 @@ public class ProjectileWeapon extends VehicleWeapon {
return this;
}
public ProjectileWeapon jhpBullet(int jhpLevel) {
this.jhpLevel = jhpLevel;
return this;
}
public ProjectileWeapon heBullet(int heLevel) {
this.heLevel = heLevel;
return this;
}
public ProjectileEntity create(LivingEntity shooter) {
return new ProjectileEntity(shooter.level())
.shooter(shooter)
.headShot(headShot)
.damage(damage)
.bypassArmorRate(bypassArmorRate)
.zoom(zoom)
.jhpBullet(jhpLevel)
.heBullet(heLevel);
.zoom(zoom);
}
}