Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityTeleportEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.EntityTeleportEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event org.bukkit.event.entity.EntityPortalEvent org.bukkit.event.entity.EntityPortalExitEvent

Public Member Functions

 EntityTeleportEvent (Entity what, Location from, Location to)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Location getFrom ()
 
void setFrom (Location from)
 
Location getTo ()
 
void setTo (Location to)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Thrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.

Definition at line 12 of file EntityTeleportEvent.java.

Member Function Documentation

Location org.bukkit.event.entity.EntityTeleportEvent.getFrom ( )

Gets the location that this entity moved from

Returns
Location this entity moved from

Definition at line 38 of file EntityTeleportEvent.java.

38  {
39  return from;
40  }
Location org.bukkit.event.entity.EntityTeleportEvent.getTo ( )

Gets the location that this entity moved to

Returns
Location the entity moved to

Definition at line 56 of file EntityTeleportEvent.java.

56  {
57  return to;
58  }
boolean org.bukkit.event.entity.EntityTeleportEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 25 of file EntityTeleportEvent.java.

25  {
26  return cancel;
27  }
void org.bukkit.event.entity.EntityTeleportEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 29 of file EntityTeleportEvent.java.

29  {
30  this.cancel = cancel;
31  }
void org.bukkit.event.entity.EntityTeleportEvent.setFrom ( Location  from)

Sets the location that this entity moved from

Parameters
fromNew location this entity moved from

Definition at line 47 of file EntityTeleportEvent.java.

47  {
48  this.from = from;
49  }
void org.bukkit.event.entity.EntityTeleportEvent.setTo ( Location  to)

Sets the location that this entity moved to

Parameters
toNew Location this entity moved to

Definition at line 65 of file EntityTeleportEvent.java.

65  {
66  this.to = to;
67  }

The documentation for this class was generated from the following file: