WorldGenerator gen = (WorldGenerator) c.getWorld().getGenerator();
int chunkX = c.getX();
int chunkZ = c.getZ();
// Setup info - seams to require this to prevent NPE's when server is restarted.
gen.initializeWorldInfo(c.getWorld());
// figure out what everything looks like. Again :/
PlatMap platmap = gen.getPlatMap(chunkX, chunkZ);
if (platmap == null)
throw new IllegalArgumentException("PlatMap not found for specified chunk");