Examples of drawBlocks()


Examples of nexus.model.structs.Chunk.drawBlocks()

//      this.model.requestChunk(new Vector3(0, 0, 0));
     
      for(int i = -this.renderDistance; i <= this.renderDistance; i++) {
        for(int j = -this.renderDistance; j <= this.renderDistance; j++) {
          Chunk chunk = this.model.chunks.getChunk(this.model.camera.eye.add(new Vector3(i, 0, j).scale(16f)));
          chunk.drawBlocks();
        }
      }
     
      Display.update();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.