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

Public Member Functions

 EntityPortalExitEvent (final Entity entity, final Location from, final Location to, final Vector before, final Vector after)
 
Vector getBefore ()
 
Vector getAfter ()
 
void setAfter (Vector after)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityTeleportEvent
 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 ()
 
- Static Public Member Functions inherited from org.bukkit.event.entity.EntityTeleportEvent
static HandlerList getHandlerList ()
 

Additional Inherited Members

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

Detailed Description

Called before an entity exits a portal.

This event allows you to modify the velocity of the entity after they have successfully exited the portal.

Definition at line 14 of file EntityPortalExitEvent.java.

Member Function Documentation

Vector org.bukkit.event.entity.EntityPortalExitEvent.getAfter ( )

Gets a copy of the velocity that the entity will have after exiting the portal.

Returns
velocity of entity after exiting portal

Definition at line 41 of file EntityPortalExitEvent.java.

References org.bukkit.util.Vector.clone().

41  {
42  return this.after.clone();
43  }
Vector org.bukkit.event.entity.EntityPortalExitEvent.getBefore ( )

Gets a copy of the velocity that the entity has before entering the portal.

Returns
velocity of entity before entering portal

Definition at line 31 of file EntityPortalExitEvent.java.

References org.bukkit.util.Vector.clone().

31  {
32  return this.before.clone();
33  }
void org.bukkit.event.entity.EntityPortalExitEvent.setAfter ( Vector  after)

Sets the velocity that the entity will have after exiting the portal.

Definition at line 48 of file EntityPortalExitEvent.java.

References org.bukkit.util.Vector.clone().

48  {
49  this.after = after.clone();
50  }

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