public interface InteractBlockEvent extends InteractEvent, TargetBlockEvent
BlockSnapshot
at a
Location
.
Note: Any interaction that occurs within BlockTypes.AIR
where the
Location
is not known, will contain a BlockSnapshot.NONE
.
Modifier and Type | Interface and Description |
---|---|
static interface |
InteractBlockEvent.Primary
An event where the targeted block is being interacted with the client's
"primary" button.
|
static interface |
InteractBlockEvent.Secondary
An event where the targeted block is being interacted with the client's
"secondary" button.
|
Modifier and Type | Method and Description |
---|---|
Direction |
getTargetSide()
Gets the target "side" of the
BlockState being interacted with
or Direction.NONE if not known. |
getInteractionPoint
isCancelled, setCancelled
getTargetBlock
getCause, getContext, getSource
Direction getTargetSide()
BlockState
being interacted with
or Direction.NONE
if not known.Direction.NONE