Package nexus.model.renderable

Examples of nexus.model.renderable.Air


        for (int k = 0; k < HEIGHT; k++) {
          if (k <= y) {
            this.blocks[i][j][k] = new Solid(new Vector3(x, (float) k, z), 1.0f, this.colorist);
          } else {
            this.blocks[i][j][k] = new Air(new Vector3(x, (float) k, z), 1.0f)
          }
        }
      }
    }
  }
View Full Code Here


          model.chunks.getBlock(target).getMask().setDrawOutline(true);
          model.chunks.selected = target;
        }
       
        if (Mouse.isButtonDown(0)) {
          model.chunks.setBlock(new Air(model.chunks.selected, 1.0f));
        }
       
        if (Mouse.isButtonDown(1)) {
          Block newBlock = new Solid(model.chunks.getBlock(model.chunks.selected).a.add(new Vector3(0f, 1f, 0f)), 1.0f, new Greyscale(16.0f, 0.0f));
          model.chunks.setBlock(newBlock);
View Full Code Here

TOP

Related Classes of nexus.model.renderable.Air

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.