Class AddBreakProgressEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.AddBreakProgressEvent

public final class AddBreakProgressEvent extends Event
This event is fired every tick when an AbstractPlayerEntity is in the process of breaking a tile. Note that this event is only fired on the client. Changing any of the non-final variables will result in the progress being modified. This event cannot be cancelled.
  • Field Details

    • player

      public final AbstractPlayerEntity player
    • layer

      public final TileLayer layer
    • x

      public final int x
    • y

      public final int y
    • totalProgress

      public float totalProgress
    • progressAdded

      public float progressAdded
  • Constructor Details

    • AddBreakProgressEvent

      public AddBreakProgressEvent(AbstractPlayerEntity player, TileLayer layer, int x, int y, float totalProgress, float progressAdded)