Various changes to the vehicle hooks.

This commit is contained in:
sk89q
2011-01-07 11:16:04 -08:00
parent a14441dd5a
commit 3d94820557
4 changed files with 73 additions and 11 deletions

View File

@@ -1,30 +1,30 @@
package org.bukkit.event.vehicle;
import org.bukkit.LivingEntity;
import org.bukkit.Entity;
import org.bukkit.Vehicle;
import org.bukkit.event.Cancellable;
/**
* Raised when a living entity enters a vehicle.
* Raised when an entity enters a vehicle.
*
* @author sk89q
*/
public class VehicleEnterEvent extends VehicleEvent implements Cancellable {
private boolean cancelled;
private LivingEntity entered;
private Entity entered;
public VehicleEnterEvent(Type type, Vehicle vehicle, LivingEntity entered) {
public VehicleEnterEvent(Type type, Vehicle vehicle, Entity entered) {
super(type, vehicle);
this.entered = entered;
}
/**
* Get the living entity that entered the vehicle.
* Get the entity that entered the vehicle.
*
* @return
*/
public LivingEntity getEntered() {
public Entity getEntered() {
return entered;
}