Package me.daddychurchill.CityWorld.Support

Examples of me.daddychurchill.CityWorld.Support.PlatMap


      // place to work
      ByteChunk byteChunk = new ByteChunk(this, chunkX, chunkZ);
   
      // figure out what everything looks like
      PlatMap platmap = getPlatMap(chunkX, chunkZ);
      if (platmap != null) {
        //CityWorld.reportMessage("generate X,Z = " + chunkX + "," + chunkZ);
        platmap.generateChunk(byteChunk, biomes);
      }
     
      // This was added by Sablednah
      // https://github.com/echurchill/CityWorld/pull/5
      // MOVED to the chunk populator by DaddyChurchill 10/27/12
View Full Code Here


    // calculate the plat's key
    Long platkey = Long.valueOf(((long) platX * (long) Integer.MAX_VALUE + (long) platZ));

    // get the right plat
    PlatMap platmap = platmaps.get(platkey);
   
    // doesn't exist? then make it!
    if (platmap == null) {
     
      // what is the context for this one?
      platmap = new PlatMap(this, shapeProvider, platX, platZ);
     
      // remember it for quicker look up
      platmaps.put(platkey, platmap);
    }

View Full Code Here

       
        // place to work
        RealChunk realChunk = new RealChunk(chunkGen, chunk);

        // figure out what everything looks like
        PlatMap platmap = chunkGen.getPlatMap(chunkX, chunkZ);
        if (platmap != null) {
          platmap.generateBlocks(realChunk);
         
          // finalize things
          chunkGen.lootProvider.saveLoots();
         
          // Originally by Sablednah
          // Moved and modified a bit by DaddyChurchill
          CityWorldEvent event = new CityWorldEvent(chunk, platmap, platmap.getMapLot(chunkX, chunkZ));
          Bukkit.getServer().getPluginManager().callEvent(event);
        }
      } catch (Exception e) {
        reportException("BlockPopulator FAILED", e);
      }
View Full Code Here

    // 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");
   
    // figure out the lot
    PlatLot lot = platmap.getMapLot(chunkX, chunkZ);

    // add context type to returned hashmap
    info.put("context", platmap.context.schematicFamily.toString());

    // add last part of context classname to hashmap
View Full Code Here

    // 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");
   
    return platmap.getNumberOfRoads();
  }
View Full Code Here

    // 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");

    return platmap.context.schematicFamily.toString();
  }
View Full Code Here

    // 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");
   
    return platmap.context;
  }
View Full Code Here

    // 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");
   
    // figure out the lot
    PlatLot lot = platmap.getMapLot(chunkX, chunkZ);
    return lot.style.toString();
  }
View Full Code Here

    // 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");
   
    // figure out the lot
    PlatLot lot = platmap.getMapLot(chunkX, chunkZ);
    return lot.style;
  }
View Full Code Here

    // 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");
   
    // figure out the lot
    PlatLot lot = platmap.getMapLot(chunkX, chunkZ);
   
    // Now check if lot is a clipboardlot to get schematic name
    if (lot instanceof ClipboardLot) {
      ClipboardLot clot = (ClipboardLot) lot;
      name = clot.getClip().name;
View Full Code Here

TOP

Related Classes of me.daddychurchill.CityWorld.Support.PlatMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.