public final class BreakEvent extends Event
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.| Modifier and Type | Field and Description |
|---|---|
boolean |
effective |
TileLayer |
layer |
AbstractPlayerEntity |
player |
int |
x |
int |
y |
| Constructor and Description |
|---|
BreakEvent(AbstractPlayerEntity player,
TileLayer layer,
int x,
int y,
boolean effective) |
public final AbstractPlayerEntity player
public TileLayer layer
public int x
public int y
public boolean effective
public BreakEvent(AbstractPlayerEntity player, TileLayer layer, int x, int y, boolean effective)