public virtual NbtCompound writeToNbt(NbtCompound tag) { NbtHelper.writeDirectVector3(tag, this.structureBoundingBox.center, "sbbc"); NbtHelper.writeDirectVector3(tag, this.structureBoundingBox.size, "sbbs"); return(tag); }
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); }
public void writeToNbt(NbtCompound tag) { NbtHelper.writeDirectVector3(tag, this.point1, "start"); NbtHelper.writeDirectVector3(tag, this.point2, "end"); tag.Add(new NbtFloat("r", this.radius)); }