Class EntityPortalEnterEvent


  • public class EntityPortalEnterEvent
    extends EntityEvent
    Called when an entity comes into contact with a portal
    • Constructor Detail

      • EntityPortalEnterEvent

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

      • getLocation

        @NotNull
        public Location getLocation()
        Gets the portal block the entity is touching
        Returns:
        The portal block the entity is touching
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()