Package se.llbit.nbt

Examples of se.llbit.nbt.AnyTag


      Set<String> request = new HashSet<String>();
      request.add(".Data.Player");
      Map<String, AnyTag> result = NamedTag.quickParse(in, request);
      in.close();

      AnyTag playerTag = result.get(".Data.Player");

      System.out.println("writing output to "+outFn);
      DataOutputStream out = new DataOutputStream(new GZIPOutputStream(new FileOutputStream(outFn)));
      NamedTag rootTag = new NamedTag(new StringTag(""), (CompoundTag) playerTag);
      rootTag.write(out);
View Full Code Here


    String fn = args[0];
    //String outFn = fn+".out";
    //System.out.println("parsing "+fn);
    //System.out.println("writing output to "+outFn);
    //PrintStream out = new PrintStream(new File(outFn));
    AnyTag tag = read(fn);
    PrintStream out = System.out;
    out.print(tag.dumpTree());
    out.close();
    System.out.println("done");
  }
View Full Code Here

TOP

Related Classes of se.llbit.nbt.AnyTag

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.