Class EntityPortalEnterEvent


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

      • EntityPortalEnterEvent

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

      • getLocation

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

        @NotNull
        public static @NotNull HandlerList getHandlerList()