mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 07:35:12 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -2,13 +2,37 @@ 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);
|
||||
}
|
||||
Reference in new issue
Block a user