mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 01:45:07 +00:00
Added 4 different spawning options, and spawning height max and mins to natural spawn entries.
This commit is contained in:
1 parent
7d0b124422
commit
4094f3e851
8 files changed
+177
-32
No files matched your search
@@ -192,7 +192,7 @@ public class SpawnController implements INaturalSpawnsHandler {
|
||||
return map;
|
||||
}
|
||||
|
||||
public void saveAllData() {
|
||||
public void save() {
|
||||
for (SpawnData spawn : this.data) {
|
||||
if (spawn.id < 0) {
|
||||
spawn.id = getUnusedId();
|
||||
@@ -216,4 +216,8 @@ public class SpawnController implements INaturalSpawnsHandler {
|
||||
public INaturalSpawn[] getSpawns(String biome) {
|
||||
return getSpawnList(biome).toArray(new INaturalSpawn[]{});
|
||||
}
|
||||
|
||||
public INaturalSpawn createSpawn() {
|
||||
return new SpawnData();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user