writeVector3d static method

void writeVector3d(
  1. CompoundTag tag,
  2. String name,
  3. Vector3d pos
)

Implementation

static void writeVector3d(CompoundTag tag, String name, Vector3d pos) {
  ListTag posTag = ListTag();
  posTag.add(DoubleTag.valueOf(pos.X));
  posTag.add(DoubleTag.valueOf(pos.Y));
  posTag.add(DoubleTag.valueOf(pos.Z));
  tag.put(name, posTag);
}