@Override
 public List<Region> divideToRegions(World world) {
   List<Region> result = new ArrayList<Region>();
   for (Biome biome : Biome.values()) {
     BiomeRegion region = new BiomeRegion(world.getUID(), biome);
     region.setRegionManager(regionManager);
     result.add(region);
   }
   return result;
 }
Example #2
0
 static {
   Biome[] b = Biome.values();
   BiomeMap[] bm = BiomeMap.values();
   biome_to_bmap = new BiomeMap[256];
   for (int i = 0; i < biome_to_bmap.length; i++) {
     biome_to_bmap[i] = BiomeMap.NULL;
   }
   for (int i = 0; i < b.length; i++) {
     String bs = b[i].toString();
     for (int j = 0; j < bm.length; j++) {
       if (bm[j].toString().equals(bs)) {
         biome_to_bmap[b[i].ordinal()] = bm[j];
         break;
       }
     }
   }
 }