Class BlockBreakCalculation

java.lang.Object
net.minestom.server.utils.block.BlockBreakCalculation

public class BlockBreakCalculation extends Object
  • Field Details

  • Constructor Details

    • BlockBreakCalculation

      public BlockBreakCalculation()
  • Method Details

    • breakTicks

      public static int breakTicks(@NotNull @NotNull Block block, @NotNull @NotNull Player player)
      Calculates the block break time in ticks
      Returns:
      the block break time in ticks, -1 if the block is unbreakable