Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.vehicle;
2
3import org.bukkit.block.Block;
4import org.bukkit.entity.Vehicle;
5
6/**
7 * Raised when a vehicle collides with a block.
8 */
9public class VehicleBlockCollisionEvent extends VehicleCollisionEvent {
10 private Block block;
11
12 public VehicleBlockCollisionEvent(Vehicle vehicle, Block block) {
13 super(Type.VEHICLE_COLLISION_BLOCK, vehicle);
14 this.block = block;
15 }
16
17 /**
18 * Gets the block the vehicle collided with
19 *
20 * @return the block the vehicle collided with
21 */
22 public Block getBlock() {
23 return block;
24 }
25}