getMiningSpeedMultiplier

float getMiningSpeedMultiplier(ItemStack stack, LivingEntity user)

Determines the mining speed multiplier of the passed stack, which is one factor in overall mining speed.

Return

The mining speed multiplier of the item. 8.0 is equal to a diamond pick.

Deprecated

Use getMiningSpeedMultiplier to detect tag and block.

Parameters

stack

The item stack being used to mine the block

user

The current user of the tool, or null if there isn't any

Sources

jvm source
Link copied to clipboard