Package noppes.npcs.api.handler
Interface ITransportHandler
-
public interface ITransportHandlerHandles transport categories and their locations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITransportCategory[]categories()Returns all transport categories.voidcreateCategory(String title)Creates a new transport category with the given title.ITransportCategorygetCategory(String title)Returns the transport category with the given title.voidremoveCategory(String title)Removes the transport category with the given title.
-
-
-
Method Detail
-
categories
ITransportCategory[] categories()
Returns all transport categories.- Returns:
- an array of transport categories.
-
createCategory
void createCategory(String title)
Creates a new transport category with the given title.- Parameters:
title- the category title.
-
getCategory
ITransportCategory getCategory(String title)
Returns the transport category with the given title.- Parameters:
title- the category title.- Returns:
- the category, or null if not found.
-
removeCategory
void removeCategory(String title)
Removes the transport category with the given title.- Parameters:
title- the category title.
-
-