public void readFromNbt(NbtCompound tag) { this.seed = tag.Get <NbtInt>("seed").IntValue; this.spawnPos = NbtHelper.readDirectVector3(tag, "spawn"); this.worldType = tag.Get <NbtInt>("worldType").IntValue; this.lastLoaded = DateTime.FromBinary(tag.Get <NbtLong>("lastLoaded").LongValue); }
public virtual void readFromNbt(NbtCompound tag) { this.structureBoundingBox = new Bounds( NbtHelper.readDirectVector3(tag, "sbbc"), NbtHelper.readDirectVector3(tag, "sbbs")); }
public CaveSegment(NbtCompound tag) { this.point1 = NbtHelper.readDirectVector3(tag, "start"); this.point2 = NbtHelper.readDirectVector3(tag, "end"); this.radius = tag.Get <NbtFloat>("r").FloatValue; }