Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.vehicle.VehicleDestroyEvent Class Reference
Inheritance diagram for org.bukkit.event.vehicle.VehicleDestroyEvent:
org.bukkit.event.vehicle.VehicleEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 VehicleDestroyEvent (final Vehicle vehicle, final Entity attacker)
 
Entity getAttacker ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.vehicle.VehicleEvent
 VehicleEvent (final Vehicle vehicle)
 
final Vehicle getVehicle ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.vehicle.VehicleEvent
Vehicle vehicle
 

Detailed Description

Raised when a vehicle is destroyed, which could be caused by either a player or the environment. This is not raised if the boat is simply 'removed' due to other means.

Definition at line 13 of file VehicleDestroyEvent.java.

Member Function Documentation

Entity org.bukkit.event.vehicle.VehicleDestroyEvent.getAttacker ( )

Gets the Entity that has destroyed the vehicle, potentially null

Returns
the Entity that has destroyed the vehicle, potentially null

Definition at line 28 of file VehicleDestroyEvent.java.

28  {
29  return attacker;
30  }
boolean org.bukkit.event.vehicle.VehicleDestroyEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 32 of file VehicleDestroyEvent.java.

32  {
33  return cancelled;
34  }
void org.bukkit.event.vehicle.VehicleDestroyEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 36 of file VehicleDestroyEvent.java.

36  {
37  this.cancelled = cancel;
38  }

The documentation for this class was generated from the following file: