Class SaveChunkShapeInfo
That is a way to generate a really large structure. Since that the nbt is saved during world gen, no block entity should be present.
This class is used to create JSON files.
It is used by this mod to divide a structure into chunks.
If the structure is larger than a chunk, it will save the structure into chunks that will be saved into JSON files.
The JSON files will then be saved into the following path : [save_name]/generated/easierworldcreator/[chunk.x-chunk.z]/custom_feature_[Random long].
It will then be read by the following class LoadChunkShapeInfo
Since that to generate large structures, it requires to write and read the json file, be careful to don't have a too big structure. It may use a lot of performance during the write of every files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathcreateFolders(Path path) this method allows the creation of the generated and related foldersstatic PathgetMultiChunkPath(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.util.math.ChunkPos chunkPos)
-
Constructor Details
-
SaveChunkShapeInfo
public SaveChunkShapeInfo()
-
-
Method Details
-
createFolders
this method allows the creation of the generated and related folders- Parameters:
path- the base path- Returns:
- the generated Path
-
getMultiChunkPath
public static Path getMultiChunkPath(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.util.math.ChunkPos chunkPos)
-