Implemented vehicle hooks (some changes will still be made).
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package org.bukkit.event.vehicle;
|
||||
|
||||
import org.bukkit.Block;
|
||||
import org.bukkit.Vehicle;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle collides with a block.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class VehicleBlockCollisionEvent extends VehicleCollisionEvent {
|
||||
private Block block;
|
||||
|
||||
public VehicleBlockCollisionEvent(Type type, Vehicle vehicle, Block block) {
|
||||
super(type, vehicle);
|
||||
this.block = block;
|
||||
}
|
||||
|
||||
public Block getBlock() {
|
||||
return block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user