mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Added a case previously not covered by VehicleDestroyEvent for boats, updated VehicleDestroyEvent Javadocs.
This commit is contained in:
parent
b04b8379c6
commit
e886509abc
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue