get Mining Speed Multiplier
@Deprecated()
Content copied to clipboard
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
float getMiningSpeedMultiplier(Tag<Item> tag, BlockState state, ItemStack stack, @Nullable() LivingEntity user)
Content copied to clipboard
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.
Parameters
tag
The tool tag the item stack is being compared to
state
The block to mine
stack
The item stack being used to mine the block
user
The current user of the tool, or null if there isn't any