Class VehicleDespawnEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class VehicleDespawnEvent extends CancellableVehicleEvent<SpawnedVehicle>
This event gets fired when a SpawnedVehicle gets despawned.
  • Constructor Details

  • Method Details

    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from class: CancellableVehicleEvent
      Set if this event gets cancelled.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Overrides:
      setCancelled in class CancellableVehicleEvent<SpawnedVehicle>
      Parameters:
      cancelled - true if you wish to cancel this event
    • getReason

      The reason why the vehicle gets despawned.
    • isForce

      public boolean isForce()
      Whether the vehicle is forced to despawn.
    • getDespawner

      @Nullable public org.bukkit.entity.Player getDespawner()
      The Player that despawns the vehicle.