|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.entity.EntityEvent org.bukkit.event.entity.EntityTeleportEvent
public class EntityTeleportEvent
Thrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary |
---|
Fields inherited from class org.bukkit.event.entity.EntityEvent |
---|
entity |
Constructor Summary | |
---|---|
EntityTeleportEvent(Entity what,
Location from,
Location to)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.bukkit.event.entity.EntityEvent |
---|
getEntity, getEntityType |
Methods inherited from class org.bukkit.event.Event |
---|
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityTeleportEvent(Entity what, Location from, Location to)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |