if (!FeatureParser.parseEntityList(entry.get("spawnEntity"), mobList)) {
log.warn("Entry specifies invalid entity list for 'dungeon' generator! Using 'Pig'!");
mobList.clear();
NBTTagCompound tag = new NBTTagCompound();
tag.setString("EntityId", "Pig");
mobList.add(new WeightedRandomNBTTag(100, tag));
}
} else {
log.warn("Entry specifies invalid entity list for 'dungeon' generator! Using 'Pig'!");
NBTTagCompound tag = new NBTTagCompound();
tag.setString("EntityId", "Pig");
mobList.add(new WeightedRandomNBTTag(100, tag));
}
WorldGenDungeon r = new WorldGenDungeon(resList, matList, mobList);
if (entry.has("spawnerFloor")) {
resList = new ArrayList<WeightedRandomBlock>();
if (FeatureParser.parseResList(entry.get("spawnerFloor"), resList)) {