public class EntityExitVehicleEvent extends Object implements VehicleEvent, Cancellable
| Constructor and Description |
|---|
EntityExitVehicleEvent(Entity vehicle,
Entity riding) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
Entity |
getVehicle() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
boolean |
isPlayer() |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Entity getEntity()
public boolean isPlayer()
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–2020 NukkitX. All rights reserved.