Package net.minestom.server.utils.block
Class BlockBreakCalculation
java.lang.Object
net.minestom.server.utils.block.BlockBreakCalculation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
breakTicks
(@NotNull Block block, @NotNull Player player) Calculates the block break time in ticks
-
Field Details
-
UNBREAKABLE
public static final int UNBREAKABLE- See Also:
-
-
Constructor Details
-
BlockBreakCalculation
public BlockBreakCalculation()
-
-
Method Details
-
breakTicks
Calculates the block break time in ticks- Returns:
- the block break time in ticks, -1 if the block is unbreakable
-