Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
VehicleMoveEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.vehicle;
2 
3 import org.bukkit.Location;
4 import org.bukkit.entity.Vehicle;
5 import org.bukkit.event.HandlerList;
6 
10 public class VehicleMoveEvent extends VehicleEvent {
11  private static final HandlerList handlers = new HandlerList();
12  private final Location from;
13  private final Location to;
14 
15  public VehicleMoveEvent(final Vehicle vehicle, final Location from, final Location to) {
16  super(vehicle);
17 
18  this.from = from;
19  this.to = to;
20  }
21 
27  public Location getFrom() {
28  return from;
29  }
30 
36  public Location getTo() {
37  return to;
38  }
39 
40 
41  @Override
43  return handlers;
44  }
45 
46  public static HandlerList getHandlerList() {
47  return handlers;
48  }
49 }