public class RCFileHelper
extends java.lang.Object
Constructor and Description |
---|
RCFileHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encodePath(java.lang.String path) |
static java.io.File |
getValidatedFolder(java.io.File file,
boolean create) |
static java.io.File |
getValidatedFolder(java.io.File parent,
java.lang.String child,
boolean create) |
static java.util.List<java.nio.file.Path> |
listFilesRecursively(java.nio.file.Path dir,
java.nio.file.DirectoryStream.Filter<java.nio.file.Path> filter,
boolean recursive) |
static java.nio.file.Path |
pathFromResourceLocation(net.minecraft.util.ResourceLocation resourceLocation) |
static void |
recursiveJSONSearch(java.lang.String dir,
java.util.ArrayList<java.io.File> jsons) |
public static java.lang.String encodePath(java.lang.String path)
public static java.nio.file.Path pathFromResourceLocation(net.minecraft.util.ResourceLocation resourceLocation) throws java.net.URISyntaxException, java.io.IOException
java.net.URISyntaxException
java.io.IOException
public static java.util.List<java.nio.file.Path> listFilesRecursively(java.nio.file.Path dir, java.nio.file.DirectoryStream.Filter<java.nio.file.Path> filter, boolean recursive) throws java.io.IOException
java.io.IOException
public static void recursiveJSONSearch(java.lang.String dir, java.util.ArrayList<java.io.File> jsons)
public static java.io.File getValidatedFolder(java.io.File file, boolean create)
public static java.io.File getValidatedFolder(java.io.File parent, java.lang.String child, boolean create)