Package se.llbit.chunky.renderer.test

Examples of se.llbit.chunky.renderer.test.TestRenderer


          System.exit(1);
        }
      }
    }

    TestRenderer renderer;

    if (!block.isEmpty()) {
      int sep = block.indexOf(':');
      String blockPart;
      String metadataPart = "";
      if (sep == -1) {
        blockPart = block;
      } else {
        blockPart = block.substring(0, sep);
        if (sep+1 < block.length()) {
          metadataPart = block.substring(sep+1);
        }
      }
      int blockId = Integer.parseInt(blockPart);
      int metadata = 0;
      if (!metadataPart.isEmpty()) {
        metadata = Integer.parseInt(metadataPart);
      }
      renderer = new TestRenderer(null,
          blockId | (metadata << BlockData.OFFSET),
          targetFile);
    } else {
      renderer = new TestRenderer(null, -1, targetFile);
    }

    renderer.start();
  }
View Full Code Here

TOP

Related Classes of se.llbit.chunky.renderer.test.TestRenderer

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.