Skip to content

AssetPathUtil

Package: com.hypixel.hytale.builtin.asseteditor.util

public class AssetPathUtil

Static utility class for file path validation and manipulation within the asset editor.

ConstantTypeValueDescription
UNIX_FILE_SEPARATORString"/"Unix path separator
FILE_EXTENSION_JSONString".json"JSON file extension
DIR_SERVERString"Server"Server directory name
DIR_COMMONString"Common"Common directory name
PATH_DIR_COMMONPathPaths.get("Common")Path constant for Common
PATH_DIR_SERVERPathPaths.get("Server")Path constant for Server
EMPTY_PATHPathPath.of("")Empty path constant
MethodDescription
boolean isInvalidFileName(Path)Returns true if the filename contains invalid characters (control chars, `<>:”
String removeInvalidFileNameChars(String)Strips characters matching `[<>:”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.