Some more backwards incompatible changes (minor though), also a ton of small cleanup.
onPluginEnable(PluginEvent event) -> onPluginEnable(PluginEnableEvent event) onPluginDisable(PluginEvent event) -> onPluginDisable(PluginDisableEvent event) onVehicleUpdate(VehicleEvent event) -> onVehicleUpdate(VehicleUpdateEvent event) onWorldSave(WorldEvent event) -> onWorldSave(WorldSaveEvent event) onWorldLoad(WorldEvent event) -> onWorldLoad(WorldLoadEvent event)
This commit is contained in:
@@ -12,13 +12,12 @@ import org.bukkit.event.Cancellable;
|
||||
public class VehicleEnterEvent extends VehicleEvent implements Cancellable {
|
||||
private boolean cancelled;
|
||||
private Entity entered;
|
||||
|
||||
public VehicleEnterEvent(Type type, Vehicle vehicle, Entity entered) {
|
||||
super(type, vehicle);
|
||||
|
||||
|
||||
public VehicleEnterEvent(Vehicle vehicle, Entity entered) {
|
||||
super(Type.VEHICLE_ENTER, vehicle);
|
||||
this.entered = entered;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the entity that entered the vehicle.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user