mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 00:14:44 +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
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user