Class VehicleBlockCollisionEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
org.bukkit.event.vehicle.VehicleCollisionEvent
org.bukkit.event.vehicle.VehicleBlockCollisionEvent
Raised when a vehicle collides with a block.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class VehicleEvent
vehicle -
Constructor Summary
ConstructorsConstructorDescriptionVehicleBlockCollisionEvent(@NotNull Vehicle vehicle, @NotNull Block block) Deprecated, for removal: This API element is subject to removal in a future version.VehicleBlockCollisionEvent(@NotNull Vehicle vehicle, @NotNull Block block, @NotNull Vector velocity) -
Method Summary
Methods inherited from class VehicleCollisionEvent
getHandlerList, getHandlersMethods inherited from class VehicleEvent
getVehicleMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
VehicleBlockCollisionEvent
@Internal @Deprecated(forRemoval=true) public VehicleBlockCollisionEvent(@NotNull @NotNull Vehicle vehicle, @NotNull @NotNull Block block) Deprecated, for removal: This API element is subject to removal in a future version. -
VehicleBlockCollisionEvent
-
-
Method Details
-
getBlock
Gets the block the vehicle collided with- Returns:
- the block the vehicle collided with
- Since:
- 1.0.0
-
getVelocity
Gets velocity at which the vehicle collided with the block- Returns:
- pre-collision moving velocity
- Since:
- 1.19.3
-