Package com.melluh.servertours.api
Interface RouteManager
public interface RouteManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateRoute
(String name) Creates a new route with the specified name.void
removeRoute
(Route route) Removes the specified route.void
removeRoute
(String name) Attempts to remove the route with the specified name.
-
Method Details
-
createRoute
Creates a new route with the specified name. The resulting route is not saved to disk, and will be lost when the plugin is unloaded.- Parameters:
name
- the route name- Returns:
- the new route
- Throws:
IllegalStateException
- if a route with the specified name already exists- See Also:
-
removeRoute
Attempts to remove the route with the specified name. If no such route exists, nothing will happen. The route file is also removed from the file system if it exists.- Parameters:
name
- the route name
-
removeRoute
Removes the specified route. The route file is also removed from the file system if it exists.- Parameters:
route
- the route
-
getRoute
-
getRoutes
-
getRouteNames
-