Class VehicleEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
Direct Known Subclasses:
VehicleCollisionEvent, VehicleCreateEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleExitEvent, VehicleMoveEvent, VehicleUpdateEvent

public abstract class VehicleEvent extends Event
Represents a vehicle-related event.
  • Field Details

    • vehicle

      protected Vehicle vehicle
  • Constructor Details

    • VehicleEvent

      public VehicleEvent(@NotNull Vehicle vehicle)
  • Method Details

    • getVehicle

      @NotNull public final Vehicle getVehicle()
      Get the vehicle.
      Returns:
      the vehicle