Examples of LongTag


Examples of com.mojang.nbt.LongTag

    private CompoundTag createChunkTag()
    {
        CompoundTag level = new CompoundTag("Level");
        level.put("Biomes", new ByteArrayTag("Biomes", biomes));
        level.put("HeightMap", new IntArrayTag("HeightMap", heightmap));
        level.put("LastUpdate", new LongTag("LastUpdate", 0));
        level.put("xPos", new IntTag("xPos", x));
        level.put("zPos", new IntTag("zPos", z));
        level.put("TerrainPopulated", new ByteTag("TerrainPopulated", (byte)1));

        CompoundTag root = new CompoundTag("");
View Full Code Here

Examples of net.lightstone.util.nbt.LongTag

    levelTags.put("BlockLight", new ByteArrayTag("BlockLight", blockLightData));
    // TODO: Heightmap, entities, tileentities, lastupdate
    levelTags.put("HeightMap", new ByteArrayTag("HeightMap", heightMapData));
    levelTags.put("Entities", chunkEntitiesToTag(chunk));
    levelTags.put("TileEntities", chunkTileEntitiesToTag(chunk));
    levelTags.put("LastUpdate", new LongTag("LastUpdate", 0));

    levelTags.put("xPos", new IntTag("xPos", chunk.getX()));
    levelTags.put("zPos", new IntTag("zPos", chunk.getZ()));
    // TODO: terrainpopulated
    levelTags.put("TerrainPopulated", new ByteTag("TerrainPopulated", (byte) 0));
View Full Code Here

Examples of org.jnbt.LongTag

      // valid level file, here. Good for debugging, too.
      final IntTag spawnX = (IntTag) newData.get("SpawnX");
      final IntTag spawnY = (IntTag) newData.get("SpawnY");
      final IntTag spawnZ = (IntTag) newData.get("SpawnZ");

      final LongTag Seed = (LongTag) newData.get("RandomSeed");
      var.randomSeed = Seed.getValue();
      Out.out("Seed: " + var.randomSeed); // lets output the seed, cause why not?

      final Coordinates ret =
          new Coordinates(spawnX.getValue(), spawnY.getValue(), spawnZ.getValue());
      return ret;
View Full Code Here

Examples of se.llbit.nbt.LongTag

    Long seed = Long.parseLong(args[1]);
    try {
      System.out.println("loading save: "+fn);
      DataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(fn)));
      AnyTag tag = NamedTag.read(in);
      LongTag seedTag = (LongTag) tag.unpack().get("Data").get("RandomSeed");
      seedTag.setData(seed);
      DataOutputStream out = new DataOutputStream(new GZIPOutputStream(new FileOutputStream(args[2])));
      tag.write(out);
      out.close();
      System.out.println("done");
    } catch (FileNotFoundException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.