org.bukkit.event.entity
Class EntityPortalEnterEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.entity.EntityEvent
          extended by org.bukkit.event.entity.EntityPortalEnterEvent

public class EntityPortalEnterEvent
extends EntityEvent

Called when an entity comes into contact with a portal


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
EntityPortalEnterEvent(Entity entity, Location location)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Location getLocation()
          Gets the portal block the entity is touching
 
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

EntityPortalEnterEvent

public EntityPortalEnterEvent(Entity entity,
                              Location location)
Method Detail

getLocation

public Location getLocation()
Gets the portal block the entity is touching

Returns:
The portal block the entity is touching

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.