More JavaDoc improvements.
This commit is contained in:
@@ -6,8 +6,6 @@ import org.bukkit.event.Cancellable;
|
||||
|
||||
/**
|
||||
* Raised when a vehicle is destroyed
|
||||
*
|
||||
* @author sk89q, cyklo
|
||||
*/
|
||||
public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||
private Entity attacker;
|
||||
@@ -18,14 +16,31 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
|
||||
this.attacker = attacker;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Entity that has destroyed the vehicle
|
||||
*
|
||||
* @return the Entity that has destroyed the vehicle
|
||||
*/
|
||||
public Entity getAttacker() {
|
||||
return attacker;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cancellation state of this event. A cancelled event will not
|
||||
* be executed in the server, but will still pass to other plugins
|
||||
*
|
||||
* @return true if this event is cancelled
|
||||
*/
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cancellation state of this event. A cancelled event will not
|
||||
* be executed in the server, but will still pass to other plugins
|
||||
*
|
||||
* @param cancel true if you wish to cancel this event
|
||||
*/
|
||||
public void setCancelled(boolean cancel) {
|
||||
this.cancelled = cancel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user