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 TypeMethodDescriptionvoidsetPortalLogic(PortalLogic portal) Sets thePortalLogicto use.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.entity.InvokePortalEvent
entity, portalLogic
-
Method Details
-
setPortalLogic
Sets thePortalLogicto use.- Parameters:
portal- The portal logic
-