Add display and calculation stuff for maximum damage with thrown weapons

This commit is contained in:
Bernhard Bonigl committed 2014-10-28 18:52:11 +01:00
1 parent 92fd2cc222
commit 525baf8aad
6 files changed
+51 -7

No files matched your search

@@ -88,7 +88,7 @@ public abstract class AmmoWeapon extends AmmoItem implements IAccuracy, IWindup
@Override
public String[] getTraits() {
return new String[] {"weapon", "projectile", "ammo", "windup"};
return new String[] {"weapon", "thrown", "ammo", "windup"};
}
@Override
@@ -115,6 +115,10 @@ public abstract class AmmoWeapon extends AmmoItem implements IAccuracy, IWindup
protected abstract Entity createProjectile(ItemStack reference, World world, EntityPlayer player, float accuracy);
/** used for displaying the damage, return the value used for pseed in createProjectile/ProjectileBase constructor
*/
public abstract float getProjectileSpeed();
@SideOnly(Side.CLIENT)
public CrosshairType getCrosshairType() { return CrosshairType.SQUARE; }