Interface InvokePortalEvent.Enter

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

public static interface InvokePortalEvent.Enter extends InvokePortalEvent, Cancellable
Called when entering a portal. Cancel to prevent portal effects.
  • Method Details

    • portalTransitionTime

      int portalTransitionTime()
      Gets the portal transition time in ticks.
      Returns:
      The portal transition time
    • customPortalTransitionTime

      Optional<Integer> customPortalTransitionTime()
      Gets the custom portal transition time in ticks.
      Returns:
      The custom portal transition time
    • setCustomPortalTransitionTime

      void setCustomPortalTransitionTime(Integer ticks)
      Sets the custom portal transition time in ticks.
      Parameters:
      ticks - The custom portal transition time