writeVector2d static method

void writeVector2d(
  1. CompoundTag tag,
  2. String name,
  3. Vector2d pos
)

Implementation

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