Class VehicleBlockCollisionEvent


public class VehicleBlockCollisionEvent extends VehicleCollisionEvent
Raised when a vehicle collides with a block.
  • Constructor Details

  • Method Details

    • getBlock

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

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