nova-parent
Toggle table of contents
0.18-alpha.14
jvm
Platform filter
jvm
Switch theme
Search in API
nova-parent
nova
/
xyz.xenondevs.nova.util.item
/
ToolUtils
/
calculateDamage
calculate
Damage
fun
calculateDamage
(
hardness
:
Double
,
correctForDrops
:
Boolean
,
speed
:
Double
,
efficiency
:
Double
=
0.0
,
hasteLevel
:
Int
=
0
,
fatigueLevel
:
Int
=
0
,
blockBreakSpeed
:
Double
=
1.0
,
submergedMiningSpeed
:
Double
=
0.2
,
isOnGround
:
Boolean
=
true
,
isUnderWater
:
Boolean
=
false
)
:
Double