public final class PlayerBlockBreakEvents extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PlayerBlockBreakEvents.After |
static interface |
PlayerBlockBreakEvents.Before |
static interface |
PlayerBlockBreakEvents.Canceled |
Modifier and Type | Field and Description |
---|---|
static Event<PlayerBlockBreakEvents.After> |
AFTER
Callback after a block is broken.
|
static Event<PlayerBlockBreakEvents.Before> |
BEFORE
Callback before a block is broken.
|
static Event<PlayerBlockBreakEvents.Canceled> |
CANCELED
Callback when a block break has been canceled.
|
public static final Event<PlayerBlockBreakEvents.Before> BEFORE
If any listener cancels a block breaking action, that block breaking
action is cancelled and CANCELED
event is fired. Otherwise, the
AFTER
event is fired.
public static final Event<PlayerBlockBreakEvents.After> AFTER
Only called on a logical server.
public static final Event<PlayerBlockBreakEvents.Canceled> CANCELED
Only called on a logical server. May be used to send packets to revert client-side block changes.