Package noppes.npcs.api.handler.data
Interface ITransportCategory
-
public interface ITransportCategoryRepresents a category that groups transport locations together.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLocation(String name)Adds a new transport location with the given name to this category.intgetId()ITransportLocationgetLocation(String name)Returns the transport location with the given name.StringgetTitle()voidremoveLocation(String name)Removes the transport location with the given name.voidsetTitle(String title)
-
-
-
Method Detail
-
getId
int getId()
- Returns:
- the unique category ID.
-
setTitle
void setTitle(String title)
- Parameters:
title- the category title.
-
getTitle
String getTitle()
- Returns:
- the category title.
-
addLocation
void addLocation(String name)
Adds a new transport location with the given name to this category.- Parameters:
name- the location name.
-
getLocation
ITransportLocation getLocation(String name)
Returns the transport location with the given name.- Parameters:
name- the location name.- Returns:
- the transport location, or null if not found.
-
removeLocation
void removeLocation(String name)
Removes the transport location with the given name.- Parameters:
name- the location name.
-
-