Package de.lv.jvoxgl.world

Examples of de.lv.jvoxgl.world.Chunk.addBlock()


    int cx = (int) Math.floor((float)x/(float)world.getChunkWidth());
    int cz = (int) Math.floor((float)z/(float)world.getChunkDepth());
    if(chunk == null){
      chunk = new Chunk(world, cx, cz);
    }
    if(world.getBlockAt(x, y, z) == null)chunk.addBlock(this, Coordinates.WorldToChunkCoordinatesX(world, x), y, Coordinates.WorldToChunkCoordinatesZ(world, z));
  }

  @Override
  public List<TexturedVertex> getVertices() {
    List<TexturedVertex> vertices = new ArrayList<TexturedVertex>();
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.