mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 22:15:07 +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
@@ -2,17 +2,49 @@ package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.INaturalSpawn;
|
||||
|
||||
/**
|
||||
* Handles natural spawn configurations for custom NPCs.
|
||||
*/
|
||||
public interface INaturalSpawnsHandler {
|
||||
|
||||
/**
|
||||
* Saves all spawn configurations to disk.
|
||||
*/
|
||||
void save();
|
||||
|
||||
/**
|
||||
* Returns all registered natural spawn configurations.
|
||||
*
|
||||
* @return an array of spawn configurations.
|
||||
*/
|
||||
INaturalSpawn[] getSpawns();
|
||||
|
||||
/**
|
||||
* Returns spawn configurations that include the specified biome.
|
||||
*
|
||||
* @param biome the biome name.
|
||||
* @return an array of matching spawn configurations.
|
||||
*/
|
||||
INaturalSpawn[] getSpawns(String biome);
|
||||
|
||||
/**
|
||||
* Registers a new natural spawn configuration.
|
||||
*
|
||||
* @param spawn the spawn to add.
|
||||
*/
|
||||
void addSpawn(INaturalSpawn spawn);
|
||||
|
||||
/**
|
||||
* Removes a natural spawn configuration.
|
||||
*
|
||||
* @param spawn the spawn to remove.
|
||||
*/
|
||||
void removeSpawn(INaturalSpawn spawn);
|
||||
|
||||
/**
|
||||
* Creates a new empty natural spawn configuration.
|
||||
*
|
||||
* @return the created spawn.
|
||||
*/
|
||||
INaturalSpawn createSpawn();
|
||||
}
|
||||
Reference in new issue
Block a user