Package org.bukkit.event.entity
Class EntityPortalEnterEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.entity.EntityEvent
-
- 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
Constructors Constructor Description EntityPortalEnterEvent(Entity entity, Location location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getLocation
@NotNull public Location getLocation()
Gets the portal block the entity is touching- Returns:
- The portal block the entity is touching
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-