Package Hexel.math

Examples of Hexel.math.Vector2i


        .removalListener(new RemovalListener<Vector2i, HighestBlockChunk>() {
          @Override
          public void onRemoval(
              RemovalNotification<Vector2i, HighestBlockChunk> notification) {
            HighestBlockChunk map = notification.getValue();
            Vector2i loc = notification.getKey();
            if (map != null) {
              HighestBlockFile.save(loc, map);
            }
          }
        }).build(new CacheLoader<Vector2i, HighestBlockChunk>() {
View Full Code Here


    try {
      HighestBlockChunk hbm = this.highestBlockCache.getIfPresent(pos);
      if (hbm != null)
        return hbm;
      else
        return this.highestBlockCache.get(new Vector2i(pos));
    } catch (Exception e) {
      System.out.println("Caught Exception retrieving highest block map from cache!");
      e.printStackTrace();
      System.exit(1);
      return null;
View Full Code Here

          @Override
          public void run() {
            Hexel.setSession(new Session());
            double x = 0;
            double y = 0;
            Vector2i tmp = new Vector2i();
            double z = Math.max(engine.chunks.chunkGenerator.tm.getHeightMapAt((int)x, (int)y, tmp)+16, 16);

            player = new Player(x, y, z, 0, 0, engine.getThingBridge());
            engine.setControllable(player);
            player.blockToPlace = BlockDebug.class;
View Full Code Here

TOP

Related Classes of Hexel.math.Vector2i

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.