public static interface MoveEntityEvent.Teleport.Portal extends MoveEntityEvent.Teleport
MoveEntityEvent.Teleport.PortalMoveEntityEvent.Position, MoveEntityEvent.Teleport| Modifier and Type | Method and Description | 
|---|---|
| static MoveEntityEvent.Teleport.Portal | createMoveEntityEventTeleportPortal(Cause cause,
                                   Transform<World> fromTransform,
                                   Transform<World> toTransform,
                                   PortalAgent portalAgent,
                                   Entity targetEntity,
                                   boolean usePortalAgent)Deprecated.  | 
| PortalAgent | getPortalAgent()Gets the  PortalAgentthat will be responsible for teleporting
 theTargetEntityEvent.getTargetEntity()through a Portal. | 
| boolean | getUsePortalAgent()Gets whether the  PortalAgentwill be used. | 
| void | setPortalAgent(PortalAgent portalAgent)Sets the  PortalAgentthat will be responsible for teleporting
 theTargetEntityEvent.getTargetEntity()through a Portal. | 
| void | setUsePortalAgent(boolean usePortalAgent)Sets whether the  PortalAgentwill be used. | 
createMoveEntityEventTeleport, getKeepsVelocity, setKeepsVelocitygetFromTransform, getToTransform, setToTransformgetTargetEntitygetCause, getContext, getSourceisCancelled, setCancelledvoid setUsePortalAgent(boolean usePortalAgent)
PortalAgent will be used.
 
 If this is set to true, the PortalAgent will search for a
 portal at the MoveEntityEvent.getToTransform() location and will attempt to
 create one if not found.
 
 If this is set to false, the TargetEntityEvent.getTargetEntity() will only be
 teleported to the MoveEntityEvent.getToTransform() location.
 
usePortalAgent - whether to use the portal agentboolean getUsePortalAgent()
PortalAgent will be used.
 
 If this is set to true, the PortalAgent will search for a
 Portal at the MoveEntityEvent.getToTransform() location, and will attempt to
 create one if not found.
 
 If this is set to false, the TargetEntityEvent.getTargetEntity() will only be
 teleported to the MoveEntityEvent.getToTransform() location.
 
PortalAgent getPortalAgent()
PortalAgent that will be responsible for teleporting
 the TargetEntityEvent.getTargetEntity() through a Portal.void setPortalAgent(PortalAgent portalAgent)
PortalAgent that will be responsible for teleporting
 the TargetEntityEvent.getTargetEntity() through a Portal.portalAgent - The portal agent@Deprecated static MoveEntityEvent.Teleport.Portal createMoveEntityEventTeleportPortal(Cause cause, Transform<World> fromTransform, Transform<World> toTransform, PortalAgent portalAgent, Entity targetEntity, boolean usePortalAgent)
SpongeEventFactory.createMoveEntityEventTeleportPortal(Cause, Transform, Transform, PortalAgent, Entity, boolean, boolean)cause - The cause to usefromTransform - The from transformtoTransform - The target transformportalAgent - The portal agent to usetargetEntity - The entity being teleportedusePortalAgent - Whether to use the portal agent