Class PlayerBlockBreakEvents
java.lang.Object
net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents
Contains server side events triggered by block breaking.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event
<PlayerBlockBreakEvents.After> Callback after a block is broken server side.static final Event
<PlayerBlockBreakEvents.Before> Callback before a block is broken.static final Event
<PlayerBlockBreakEvents.Canceled> Callback when a block break has been canceled. -
Method Summary
-
Field Details
-
BEFORE
-
AFTER
Callback after a block is broken server side.Only called on a logical server. For client side see
ClientPlayerBlockBreakEvents.AFTER
-
CANCELED
Callback when a block break has been canceled.Only called on a logical server. May be used to send packets to revert client-side block changes.
-