Class AddBreakProgressEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.AddBreakProgressEvent
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 Summary
FieldsModifier and TypeFieldDescriptionfinal TileLayerfinal AbstractPlayerEntityfloatfloatfinal intfinal int -
Constructor Summary
ConstructorsConstructorDescriptionAddBreakProgressEvent(AbstractPlayerEntity player, TileLayer layer, int x, int y, float totalProgress, float progressAdded) -
Method Summary
-
Field Details
-
player
-
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)
-