Class VehicleBlockCollisionEvent


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

    • VehicleBlockCollisionEvent

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

    • getBlock

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

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()