public class VehicleDestroyEvent extends Object implements VehicleEvent, Cancellable
| Constructor and Description |
|---|
VehicleDestroyEvent(Entity vehicle,
Entity attacker) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getAttacker() |
Entity |
getVehicle() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public Entity getAttacker()
public Entity getVehicle()
getVehicle in interface VehicleEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.