Class SaveChunkShapeInfo

java.lang.Object
fr.rodofire.ewc.util.file.SaveChunkShapeInfo

public class SaveChunkShapeInfo extends Object

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 Details

    • SaveChunkShapeInfo

      public SaveChunkShapeInfo()
  • Method Details

    • createFolders

      public static Path createFolders(Path path)
      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.level.WorldGenLevel worldAccess, net.minecraft.world.level.ChunkPos chunkPos)