public class EntityTeleportEvent extends Object implements EntityEvent, Cancellable
| Constructor and Description |
|---|
EntityTeleportEvent(Entity entity,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
Location |
getFrom() |
Location |
getTo() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setTo(Location to) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Location getFrom()
public Location getTo()
public void setTo(Location to)
public Entity getEntity()
getEntity in interface EntityEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2020 NukkitX. All rights reserved.