Class VehicleBlockCollisionEvent


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

      • VehicleBlockCollisionEvent

        public VehicleBlockCollisionEvent​(@NotNull
                                          Vehicle vehicle,
                                          @NotNull
                                          Block block)
    • Method Detail

      • getBlock

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

        @NotNull
        public static HandlerList getHandlerList()