summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-10-13 01:16:18 -0700
committersk89q <the.sk89q@gmail.com>2011-10-13 01:17:10 -0700
commite886509abceb10c9e43b13ac6d15b057107b661f (patch)
tree9b0e53061d8552c008e7e14f7c4783d065912557
parentb04b8379c6fcdaf9dc11566c4089a1a768498ccc (diff)
downloadbukkit-e886509abceb10c9e43b13ac6d15b057107b661f.tar
bukkit-e886509abceb10c9e43b13ac6d15b057107b661f.tar.gz
bukkit-e886509abceb10c9e43b13ac6d15b057107b661f.tar.lz
bukkit-e886509abceb10c9e43b13ac6d15b057107b661f.tar.xz
bukkit-e886509abceb10c9e43b13ac6d15b057107b661f.zip
Added a case previously not covered by VehicleDestroyEvent for boats, updated VehicleDestroyEvent Javadocs.
-rw-r--r--src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java
index 99c2dd20..461f89f2 100644
--- a/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java
+++ b/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java
@@ -5,7 +5,9 @@ import org.bukkit.entity.Vehicle;
import org.bukkit.event.Cancellable;
/**
- * Raised when a vehicle is destroyed
+ * 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.
*/
public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
private Entity attacker;
@@ -17,9 +19,9 @@ public class VehicleDestroyEvent extends VehicleEvent implements Cancellable {
}
/**
- * Gets the Entity that has destroyed the vehicle
+ * Gets the Entity that has destroyed the vehicle, potentially null
*
- * @return the Entity that has destroyed the vehicle
+ * @return the Entity that has destroyed the vehicle, potentially null
*/
public Entity getAttacker() {
return attacker;