mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 14:24:44 +00:00
39 lines
897 B
Java
39 lines
897 B
Java
package noppes.npcs.api.handler;
|
|
|
|
import noppes.npcs.api.handler.data.ITransportCategory;
|
|
|
|
/**
|
|
* Handles transport categories and their locations.
|
|
*/
|
|
public interface ITransportHandler {
|
|
|
|
/**
|
|
* Returns all transport categories.
|
|
*
|
|
* @return an array of transport categories.
|
|
*/
|
|
ITransportCategory[] categories();
|
|
|
|
/**
|
|
* Creates a new transport category with the given title.
|
|
*
|
|
* @param title the category title.
|
|
*/
|
|
void createCategory(String title);
|
|
|
|
/**
|
|
* Returns the transport category with the given title.
|
|
*
|
|
* @param title the category title.
|
|
* @return the category, or null if not found.
|
|
*/
|
|
ITransportCategory getCategory(String title);
|
|
|
|
/**
|
|
* Removes the transport category with the given title.
|
|
*
|
|
* @param title the category title.
|
|
*/
|
|
void removeCategory(String title);
|
|
}
|