Class VehicleBlockCollisionEvent


public class VehicleBlockCollisionEvent extends VehicleCollisionEvent
Raised when a vehicle collides with a block.
  • 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

      @Internal public VehicleBlockCollisionEvent(@NotNull @NotNull Vehicle vehicle, @NotNull @NotNull Block block, @NotNull @NotNull Vector velocity)
  • Method Details

    • getBlock

      @NotNull public @NotNull Block getBlock()
      Gets the block the vehicle collided with
      Returns:
      the block the vehicle collided with
    • getVelocity

      @NotNull public @NotNull Vector getVelocity()
      Gets velocity at which the vehicle collided with the block
      Returns:
      pre-collision moving velocity