Class Transport
java.lang.Object
net.storm.api.movement.pathfinder.model.Transport
Represents a non-instant transport method that moves the player from one location to another.
Transport is a core class in the pathfinding system representing any method of travel
that requires walking to a source point first, then executing some action to reach a
destination. Unlike Teleport which provides instant transportation, transports
involve physical travel between connected points.
Transport Types
- Object Interactions - Doors, ladders, stairs, shortcuts
- NPC Interactions - Ships, boats, NPCs that transport players
- Item Use - Using items on objects to gain passage
- Agility Shortcuts - Skill-based movement shortcuts
- Travel Systems - Fairy rings, spirit trees, gnome gliders
Key Properties
- source - The starting location where transport must be initiated
- destination - The target location after transport completes
- handler - The callable that executes the transport action
- requirements - Conditions (quests, skills, vars) that must be met
- sourceRadius/destinationRadius - Area around points for pathfinding
- weight - Cost factor for pathfinding calculations
- delay - Ticks to wait after using transport
Usage Example
Transport transport = Transport.builder()
.source(new WorldPoint(3200, 3200, 0))
.destination(new WorldPoint(3200, 3204, 1))
.handler(() -> {
// Climb stairs logic
return true;
})
.build();
// Execute the transport
boolean success = transport.getHandler().call();
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Transport
public Transport()
-