Ejemplo n.º 1
0
  public PlatLot createRoundaboutStatueLot(
      WorldGenerator generator, PlatMap platmap, int x, int z) {

    // grab potential platlot's random
    Odds odds = platmap.getChunkOddsGenerator(platmap.originX + x, platmap.originZ + z);

    // what way are we facing?
    Direction.Facing facing = odds.getFacing();

    // see if there is a schematic out there that fits
    Clipboard clip = mapsSchematics.getSingleLot(generator, platmap, odds, x, z);
    if (clip != null) {

      // create it then
      return new ClipboardRoundaboutLot(
          platmap, platmap.originX + x, platmap.originZ + z, clip, facing, 0, 0);

    } else return new RoundaboutStatueLot(platmap, platmap.originX + x, platmap.originZ + z);
  }