Package graphics.model.rails

Examples of graphics.model.rails.Rails$Chunk


  private Rails rails;
  private ArrayList<Station> stations;
 
  public Map() {
    data = new char[mapHeight][mapWidth];
    rails = new Rails();
    stations = new ArrayList<>();
   
    //initialize map data
    for(int rows = 0; rows < mapHeight; rows++) {
      for(int cols = 0; cols < mapWidth; cols++) {
View Full Code Here


    CraftWorld craftWorld = (CraftWorld)world;
    WorldServer worldServer = craftWorld.getHandle();
   
    BiomeBase bb = BiomeBase.biomes[id];
    if (craftWorld.loadChunk(x >> 4, z >> 4, false)) {
      Chunk chunk = worldServer.getChunkAtWorldCoords(x, z);

      if (chunk != null) {
        byte[] biomevals = chunk.m();
        biomevals[((z & 0xF) << 4) | (x & 0xF)] = (byte)bb.id;
      }
    }
  }
View Full Code Here

TOP

Related Classes of graphics.model.rails.Rails$Chunk

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.