mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 15:33:03 +00:00
Add display and calculation stuff for maximum damage with thrown weapons
This commit is contained in:
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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user