public static void locationToListTags(Location loc,CompoundTag tag){
  tag.putList("Pos",TagType.DOUBLE,Arrays.asList(loc.getX(),loc.getY(),loc.getZ()));
  tag.putList("Rotation",TagType.FLOAT,Arrays.asList(loc.getYaw(),loc.getPitch()));
}

public static void locationToListTags ( Location loc , CompoundTag tag ) { tag . putList ( "Pos" , TagType . DOUBLE , Arrays . asList ( loc . getX ( ) , loc . getY ( ) , loc . getZ ( ) ) ) ; tag . putList ( "Rotation" , TagType . FLOAT , Arrays . asList ( loc . getYaw ( ) , loc . getPitch ( ) ) ) ; }
write a location to the " pos " and " rotation " children of a tag . does not save world information , use writeworld instead .
