Various changes to the vehicle hooks.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user