Package noppes.npcs.api.handler
Interface IFactionHandler
-
public interface IFactionHandlerHandles creation, deletion, and retrieval of factions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFactioncreate(String name, int defaultPoints)Creates a new faction with the given name and default points.IFactiondelete(int id)Deletes the faction with the given ID.IFactionget(int id)Returns the faction with the given ID.List<IFaction>list()Returns all registered factions.
-
-
-
Method Detail
-
delete
IFaction delete(int id)
Deletes the faction with the given ID.- Parameters:
id- the faction ID.- Returns:
- the deleted faction, or null if not found.
-
create
IFaction create(String name, int defaultPoints)
Creates a new faction with the given name and default points.- Parameters:
name- the faction name.defaultPoints- the default standing points for new players.- Returns:
- the created faction.
-
get
IFaction get(int id)
Returns the faction with the given ID.- Parameters:
id- the faction ID.- Returns:
- the faction, or null if not found.
-
-