Class AssistData.DamageInfo
java.lang.Object
me.deecaad.weaponmechanics.weapon.damage.AssistData.DamageInfo
- Enclosing class:
AssistData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintorg.bukkit.inventory.ItemStackUsing this to e.g.toString()
-
Constructor Details
-
DamageInfo
public DamageInfo(double damage, org.bukkit.inventory.ItemStack weaponStack)
-
-
Method Details
-
getDamage
public double getDamage()- Returns:
- the total damage done using this weapon
-
getWeaponStack
public org.bukkit.inventory.ItemStack getWeaponStack()Using this to e.g. set meta is unreliable since the reference might be old at this point.- Returns:
- the weapon stack used to damage.
-
getLastHitTime
public int getLastHitTime()- Returns:
- the last hit time in ticks
-
toString
-