示例#1
0
        public virtual NbtCompound writeToNbt(NbtCompound tag)
        {
            NbtHelper.writeDirectVector3(tag, this.structureBoundingBox.center, "sbbc");
            NbtHelper.writeDirectVector3(tag, this.structureBoundingBox.size, "sbbs");

            return(tag);
        }
示例#2
0
        public NbtCompound writeToNbt()
        {
            NbtCompound tag = new NbtCompound("world");

            tag.Add(new NbtInt("seed", this.seed));
            NbtHelper.writeDirectVector3(tag, this.spawnPos, "spawn");
            tag.Add(new NbtInt("worldType", this.worldType));
            tag.Add(new NbtLong("lastLoaded", this.lastLoaded.ToBinary()));
            return(tag);
        }
示例#3
0
 public void writeToNbt(NbtCompound tag)
 {
     NbtHelper.writeDirectVector3(tag, this.point1, "start");
     NbtHelper.writeDirectVector3(tag, this.point2, "end");
     tag.Add(new NbtFloat("r", this.radius));
 }