删除冗余方法
This commit is contained in:
parent
c4d15c32c3
commit
eff789c8af
1 changed files with 1 additions and 14 deletions
|
@ -7,7 +7,6 @@ public class ProjectileWeapon extends VehicleWeapon {
|
||||||
|
|
||||||
public float headShot, damage, bypassArmorRate;
|
public float headShot, damage, bypassArmorRate;
|
||||||
public boolean zoom;
|
public boolean zoom;
|
||||||
public int jhpLevel, heLevel;
|
|
||||||
|
|
||||||
public ProjectileWeapon headShot(float headShot) {
|
public ProjectileWeapon headShot(float headShot) {
|
||||||
this.headShot = headShot;
|
this.headShot = headShot;
|
||||||
|
@ -34,24 +33,12 @@ public class ProjectileWeapon extends VehicleWeapon {
|
||||||
return this;
|
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) {
|
public ProjectileEntity create(LivingEntity shooter) {
|
||||||
return new ProjectileEntity(shooter.level())
|
return new ProjectileEntity(shooter.level())
|
||||||
.shooter(shooter)
|
.shooter(shooter)
|
||||||
.headShot(headShot)
|
.headShot(headShot)
|
||||||
.damage(damage)
|
.damage(damage)
|
||||||
.bypassArmorRate(bypassArmorRate)
|
.bypassArmorRate(bypassArmorRate)
|
||||||
.zoom(zoom)
|
.zoom(zoom);
|
||||||
.jhpBullet(jhpLevel)
|
|
||||||
.heBullet(heLevel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue