handleBreakingSpeed

static float handleBreakingSpeed(BlockState state, ItemStack stack, @Nullable() LivingEntity user)

Handles the breaking speed breaking a block.

Return

the speed multiplier in breaking the block, 1.0 if no change.

Parameters

state

the block state to break

stack

the item stack involved with breaking the block

user

the user involved in breaking the block, null if not applicable.

Sources

jvm source
Link copied to clipboard