Interface InvokePortalEvent.Prepare
- All Superinterfaces:
Cancellable
,Event
,InvokePortalEvent
- Enclosing interface:
InvokePortalEvent
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.
-
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 TypeMethodDescriptionvoid
setPortalLogic
(PortalLogic portal) Sets thePortalLogic
to use.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
-
setPortalLogic
Sets thePortalLogic
to use.- Parameters:
portal
- The portal logic
-