CancellableEntityPortalEvent, EntityPortalExitEventpublic class EntityTeleportEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor | Description | 
|---|---|
| EntityTeleportEvent(@NotNull Entity what,
                   @NotNull Location from,
                   @Nullable Location to) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull Location | getFrom() | Gets the location that this entity moved from | 
| static @NotNull HandlerList | getHandlerList() | |
| @NotNull HandlerList | getHandlers() | |
| @Nullable Location | getTo() | Gets the location that this entity moved to | 
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancel) | Sets the cancellation state of this event. | 
| void | setFrom(@NotNull Location from) | Sets the location that this entity moved from | 
| void | setTo(@Nullable Location to) | Sets the location that this entity moved to | 
getEntity, getEntityTypegetEventName, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public @NotNull Location getFrom()
public void setFrom(@NotNull
                    @NotNull Location from)
from - New location this entity moved from@Nullable public @Nullable Location getTo()
public void setTo(@Nullable
                  @Nullable Location to)
to - New Location this entity moved to@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.