AssetPathUtil
Package: com.hypixel.hytale.builtin.asseteditor.util
public class AssetPathUtilStatic utility class for file path validation and manipulation within the asset editor.
Constants
Section titled “Constants”| Constant | Type | Value | Description |
|---|---|---|---|
UNIX_FILE_SEPARATOR | String | "/" | Unix path separator |
FILE_EXTENSION_JSON | String | ".json" | JSON file extension |
DIR_SERVER | String | "Server" | Server directory name |
DIR_COMMON | String | "Common" | Common directory name |
PATH_DIR_COMMON | Path | Paths.get("Common") | Path constant for Common |
PATH_DIR_SERVER | Path | Paths.get("Server") | Path constant for Server |
EMPTY_PATH | Path | Path.of("") | Empty path constant |
Key Methods
Section titled “Key Methods”| Method | Description |
|---|---|
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.