Class BlockBreakProgressUpdateEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
io.papermc.paper.event.block.BlockBreakProgressUpdateEvent

@NullMarked public class BlockBreakProgressUpdateEvent extends BlockEvent
Called when the progress of a block break is updated.
  • Constructor Details

    • BlockBreakProgressUpdateEvent

      @Internal public BlockBreakProgressUpdateEvent(Block block, float progress, Entity entity)
  • Method Details

    • getProgress

      public float getProgress()
      The progress of the block break

      The progress ranges from 0.0 - 1.0, where 0 is no damage and 1.0 is the most damaged

      Returns:
      The progress of the block break
    • getEntity

      public Entity getEntity()
      The entity breaking the block.
      Returns:
      The entity breaking the block
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()