From f75105d723fdd1b3197afd96af054ff1d799f0fc Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 13 Oct 2011 01:16:18 -0700 Subject: [PATCH] Added a case previously not covered by VehicleDestroyEvent for boats, updated VehicleDestroyEvent Javadocs. By: sk89q --- .../org/bukkit/event/vehicle/VehicleDestroyEvent.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java b/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java index 99c2dd20ed..461f89f2e0 100644 --- a/paper-api/src/main/java/org/bukkit/event/vehicle/VehicleDestroyEvent.java +++ b/paper-api/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;