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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityPortalEnterEvent(Entity entity, Location location)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
Location
getLocation()
Gets the portal block the entity is touching
-
Constructor Details
-
Method Details
-
getLocation
Gets the portal block the entity is touching- Returns:
- The portal block the entity is touching
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-