Class BreakEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.BreakEvent
This event is fired when a
Tile is broken by an AbstractPlayerEntity. The effective variable determines if the tool being
held by the player is effective in making the tile drop its result.
Cancelling the event will result in the tile not being broken.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBreakEvent(AbstractPlayerEntity player, TileLayer layer, int x, int y, boolean effective) -
Method Summary
-
Field Details
-
player
-
layer
-
x
public int x -
y
public int y -
effective
public boolean effective
-
-
Constructor Details
-
BreakEvent
-