A lot of GOOD API DOCUMENTATION

This commit is contained in:
Kam committed 2026-03-09 16:20:07 -04:00
1 parent a6c55ca331
commit 319e774518
131 files changed
+3363 -175

No files matched your search

@@ -4,12 +4,40 @@ import noppes.npcs.api.handler.data.IFaction;
import java.util.List;
/**
* Handles creation, deletion, and retrieval of factions.
*/
public interface IFactionHandler {
/**
* Returns all registered factions.
*
* @return a list of factions.
*/
List<IFaction> list();
IFaction delete(int var1);
/**
* Deletes the faction with the given ID.
*
* @param id the faction ID.
* @return the deleted faction, or null if not found.
*/
IFaction delete(int id);
IFaction create(String var1, int var2);
/**
* Creates a new faction with the given name and default points.
*
* @param name the faction name.
* @param defaultPoints the default standing points for new players.
* @return the created faction.
*/
IFaction create(String name, int defaultPoints);
IFaction get(int var1);
/**
* Returns the faction with the given ID.
*
* @param id the faction ID.
* @return the faction, or null if not found.
*/
IFaction get(int id);
}