Package me.daddychurchill.CityWorld

Examples of me.daddychurchill.CityWorld.WorldGenerator


   
    return platmap.getNumberOfRoads();
  }

  public String getContextName(Chunk c) throws IllegalArgumentException {
    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");

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


    return platmap.context.schematicFamily.toString();
  }

  public DataContext getContext(Chunk c) throws IllegalArgumentException {

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

    return platmap.context;
  }

  public String getLotStyleName(Chunk c) throws IllegalArgumentException, IndexOutOfBoundsException {

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

    return lot.style.toString();
  }

  public LotStyle getLotStyle(Chunk c) throws IllegalArgumentException, IndexOutOfBoundsException {

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

  }

  public String getSchematicName(Chunk c) throws IllegalArgumentException, IndexOutOfBoundsException {
    String name = null;

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

    //plugin.reportMessage(CityWorld.pluginName + " API Full info called");

    HashMap<String, String> info = new HashMap<String, String>();
    String classname;

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

    return info;
  }

  public int getRoadCount(Chunk c) throws IllegalArgumentException {

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

TOP

Related Classes of me.daddychurchill.CityWorld.WorldGenerator

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.