Shampaggon / CrackShot

CrackShot plugin for Minecraft
58 stars 43 forks source link

API issue #85

Open SirMrStep opened 3 years ago

SirMrStep commented 3 years ago

I can't find a way in the API to get the weapon's damage after modifier calculation as EntityDamageEvent#getFinalDamage() does. There seems to be no way except for WeaponDamageEntityEvent#getDamage() which only returns the damage before modifier calculation. EntityDamageEvent#getFinalDamage() returns 0 for any crackshot applied damage through guns and the same with EntityDamageByEntityEvent#getFinalDamage(). This leaves me with the question: will you add a WeaponDamageEntityEvent#getFinalDamage() and if not, just HOW does crackshot calculate this final damage so i can replicate it myself?