Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
VehicleEvent.java
1 package org.bukkit.event.vehicle;
2 
3 import org.bukkit.entity.Vehicle;
4 import org.bukkit.event.Event;
5 
6 /**
7  * Represents a vehicle-related event.
8  */
9 public abstract class VehicleEvent extends Event {
10  protected Vehicle vehicle;
11 
12  public VehicleEvent(final Vehicle vehicle) {
13  this.vehicle = vehicle;
14  }
15 
16  /**
17  * Get the vehicle.
18  *
19  * @return the vehicle
20  */
21  public final Vehicle getVehicle() {
22  return vehicle;
23  }
24 }