Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
VehicleBlockCollisionEvent.java
1 package org.bukkit.event.vehicle;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.entity.Vehicle;
6 
7 /**
8  * Raised when a vehicle collides with a block.
9  */
11  private static final HandlerList handlers = new HandlerList();
12  private final Block block;
13 
14  public VehicleBlockCollisionEvent(final Vehicle vehicle, final Block block) {
15  super(vehicle);
16  this.block = block;
17  }
18 
19  /**
20  * Gets the block the vehicle collided with
21  *
22  * @return the block the vehicle collided with
23  */
24  public Block getBlock() {
25  return block;
26  }
27 
28  @Override
29  public HandlerList getHandlers() {
30  return handlers;
31  }
32 
33  public static HandlerList getHandlerList() {
34  return handlers;
35  }
36 }