public void save(ConfigurationSection configuration) {
List<ConfigurationSection> mobsConfigurations = new ArrayList<ConfigurationSection>();
for (ArenaMobSpawner mob : mobs) {
ConfigurationSection section = new MemoryConfiguration();
mob.save(section);
mobsConfigurations.add(section);
}
configuration.set("mobs", mobsConfigurations);
configuration.set("spell_start", startSpell);
configuration.set("spell_end", endSpell);
List<String> mobSpawnList = new ArrayList<String>();
for (Location spawn : mobSpawns) {
mobSpawnList.add(ConfigurationUtils.fromLocation(spawn));
}
configuration.set("mob_spawns", mobSpawnList);
}
ArenaStage.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:MagicArenas
作者:
评论列表
文章目录