Interface InvokePortalEvent.Prepare

All Superinterfaces:
Cancellable, Event, InvokePortalEvent
Enclosing interface:
InvokePortalEvent

public static interface InvokePortalEvent.Prepare extends InvokePortalEvent, Cancellable
Called before calculating and finding or generating the portal exit. Canceling resets the portal transition time Setting custom portal logic can change the teleport behaviour.
  • Method Details

    • setPortalLogic

      void setPortalLogic(PortalLogic portal)
      Sets the PortalLogic to use.
      Parameters:
      portal - The portal logic