public interface CollideBlockEvent extends CollideEvent
Entity
collides with a BlockSnapshot
.Modifier and Type | Interface and Description |
---|---|
static interface |
CollideBlockEvent.Impact
Fired when an
Entity impacts another BlockSnapshot . |
Modifier and Type | Method and Description |
---|---|
BlockState |
getTargetBlock()
Gets the target
BlockState being interacted with. |
Location<World> |
getTargetLocation()
Gets the target
Location being interacted with. |
Direction |
getTargetSide()
Gets the target "side" of the
BlockState being interacted with
or Direction.NONE if not known. |
getCause, getContext, getSource
isCancelled, setCancelled
Location<World> getTargetLocation()
Location
being interacted with.BlockState getTargetBlock()
BlockState
being interacted with.Direction getTargetSide()
BlockState
being interacted with
or Direction.NONE
if not known.Direction.NONE