public class EntityTeleportEvent extends EntityEvent implements Cancellable
Event.Result
entity
Constructor and Description |
---|
EntityTeleportEvent(Entity what,
Location from,
Location to) |
Modifier and Type | Method and Description |
---|---|
Location |
getFrom()
Gets the location that this entity moved from
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
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(Location from)
Sets the location that this entity moved from
|
void |
setTo(Location to)
Sets the location that this entity moved to
|
getEntity, getEntityType
getEventName, isAsynchronous
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic Location getFrom()
public void setFrom(Location from)
from
- New location this entity moved frompublic Location getTo()
public void setTo(Location to)
to
- New Location this entity moved topublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2015. All rights reserved.