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