public final class BreakEvent extends Event
Tile is broken by an AbstractEntityPlayer. 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 | Description |
|---|---|---|
boolean |
effective |
|
TileLayer |
layer |
|
AbstractEntityPlayer |
player |
|
int |
x |
|
int |
y |
| Constructor | Description |
|---|---|
BreakEvent(AbstractEntityPlayer player,
TileLayer layer,
int x,
int y,
boolean effective) |
public final AbstractEntityPlayer player
public TileLayer layer
public int x
public int y
public boolean effective
public BreakEvent(AbstractEntityPlayer player, TileLayer layer, int x, int y, boolean effective)