예제 #1
0
 private List<EntityType> getSpawnableEntities(EnumCreatureType creatureType) {
   List<EntityType> entityTypes = new ArrayList<EntityType>();
   for (BiomeBase.BiomeMeta meta : (List<BiomeBase.BiomeMeta>) biomeBase.getMobs(creatureType)) {
     entityTypes.add(EntityType.fromId(ENTITY_CLASS_ID_MAP.get(meta.b)));
   }
   return entityTypes;
 }
 /**
  * Gets the spawn list of the given biome for the given category.
  *
  * @param biome The biome.
  * @param type The category.
  * @return The spawn list for the given category.
  */
 public static List<WeightedMobSpawnGroup> getListFromMinecraftBiome(
     BiomeBase biome, EntityCategory type) {
   Collection<BiomeMeta> mobList = biome.getMobs(toEnumCreatureType(type));
   return fromMinecraftList(mobList);
 }