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
  • Constructor Details

    • EntityPortalEnterEvent

      public EntityPortalEnterEvent(@NotNull Entity entity, @NotNull Location location)
  • Method Details

    • 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 class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()