mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 15:02:17 +00:00
Npc API:
-Added natural spawn controller support
This commit is contained in:
1 parent
700fff3faf
commit
7d0b124422
6 files changed
+161
-6
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package noppes.npcs.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.handler.data.INaturalSpawn;
|
||||
|
||||
public interface INaturalSpawnsHandler {
|
||||
|
||||
void saveAllData();
|
||||
|
||||
INaturalSpawn[] getSpawns();
|
||||
|
||||
INaturalSpawn[] getSpawns(String biome);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package noppes.npcs.scripted.interfaces.handler.data;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.IWorld;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
|
||||
public interface INaturalSpawn {
|
||||
|
||||
void setName(String name);
|
||||
|
||||
String getName();
|
||||
|
||||
void setEntity(IEntity entity);
|
||||
|
||||
IEntity getEntity(IWorld world);
|
||||
|
||||
void setWeight(int weight);
|
||||
|
||||
int getWeight();
|
||||
|
||||
void spawnsInLiquid(boolean spawns);
|
||||
|
||||
boolean spawnsInLiquid();
|
||||
|
||||
String[] getBiomes();
|
||||
|
||||
void setBiomes(String[] biomes);
|
||||
}
|
||||
Reference in new issue
Block a user