take a look at this thread:
and then do not place Blocks in the Chunk (= Empty/Void Chunk)
via NBT Files (Note: one nbt file can store a Area of 45*48*48 Blocks, if the Structure is larger you need to divide into several NBT Files),
you can take a look at the vanilla Structures like the Nether Bastions
if the Structure is fixed you can place the Structure in the ChunkGenerator (but then you need a bit more logic, since with Strucure Generation distance)
when you register the Structure you need set the min and max distance between two Structures, you can Simply set the min and max to a large value
not sure if this possible but you can try to remove the Chunks in which the structure was generated,
since as you said it is a void dimension, then you could simply generate a new chunk at this point
I must serialize the NBTList into a String and then write it into a file.
How could I use NBT to save a file to a specified path?
I'd like to save the entire player class (position, inventory, effects, et cetera) for each dimensions.