Interface InvokePortalEvent.Enter
- All Superinterfaces:
Cancellable
,Event
,InvokePortalEvent
- Enclosing interface:
InvokePortalEvent
Called when entering a portal.
Cancel to prevent portal effects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.InvokePortalEvent
InvokePortalEvent.Enter, InvokePortalEvent.Execute, InvokePortalEvent.Prepare
-
Method Summary
Modifier and TypeMethodDescriptionGets the custom portal transition time in ticks.int
Gets the portal transition time in ticks.void
Sets the custom portal transition time in ticks.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.entity.InvokePortalEvent
entity, portalLogic
-
Method Details
-
portalTransitionTime
int portalTransitionTime()Gets the portal transition time in ticks.- Returns:
- The portal transition time
-
customPortalTransitionTime
Gets the custom portal transition time in ticks.- Returns:
- The custom portal transition time
-
setCustomPortalTransitionTime
Sets the custom portal transition time in ticks.- Parameters:
ticks
- The custom portal transition time
-