mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 14:14:48 +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
@@ -1,10 +1,32 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
/**
|
||||
* Tracks a player's faction standing points.
|
||||
*/
|
||||
public interface IPlayerFactionData {
|
||||
|
||||
/**
|
||||
* Returns the player's points for the given faction.
|
||||
*
|
||||
* @param id the faction ID.
|
||||
* @return the faction points.
|
||||
*/
|
||||
int getPoints(int id);
|
||||
|
||||
/**
|
||||
* Adds points to the player's standing with the given faction.
|
||||
* Use negative values to decrease.
|
||||
*
|
||||
* @param id the faction ID.
|
||||
* @param points the points to add.
|
||||
*/
|
||||
void addPoints(int id, int points);
|
||||
|
||||
/**
|
||||
* Sets the player's points for the given faction.
|
||||
*
|
||||
* @param id the faction ID.
|
||||
* @param points the new point value.
|
||||
*/
|
||||
void setPoints(int id, int points);
|
||||
}
|
||||
Reference in new issue
Block a user