Class FilesHelper

java.lang.Object
com.simibubi.create.foundation.utility.FilesHelper

public class FilesHelper extends Object
  • Constructor Details

    • FilesHelper

      public FilesHelper()
  • Method Details

    • createFolderIfMissing

      public static void createFolderIfMissing(String name)
    • findFirstValidFilename

      public static String findFirstValidFilename(String name, String folderPath, String extension)
    • slug

      public static String slug(String name)
    • saveTagCompoundAsJson

      public static boolean saveTagCompoundAsJson(net.minecraft.nbt.CompoundTag compound, String path)
    • saveTagCompoundAsJsonCompact

      public static boolean saveTagCompoundAsJsonCompact(net.minecraft.nbt.CompoundTag compound, String path)
    • loadJsonResource

      public static com.google.gson.JsonElement loadJsonResource(String filepath)
    • loadJson

      public static com.google.gson.JsonElement loadJson(String filepath)