Archived
0

первая проба

This commit is contained in:
2018-08-17 21:46:47 +03:00
parent 6dd0e45ce1
commit 4404a15650

View File

@@ -0,0 +1,24 @@
package mc.world.anvil;
import com.flowpowered.nbt.Tag;
import com.flowpowered.nbt.stream.NBTInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
public class Main {
public static void main(String[] args) throws IOException {
final Path levelDatPath = Paths.get(args[0]);
FileInputStream fis = new FileInputStream(levelDatPath.toFile());
NBTInputStream nbtInputStream = new NBTInputStream(fis);
Tag rootTag = nbtInputStream.readTag();
System.out.println(rootTag.toString());
nbtInputStream.close();
fis.close();
}
}