Contents
Class AssetPath
java.lang.Object
com.hypixel.hytale.procedurallib.file.AssetPath
Represents the path to an asset. This object holds both the relative path of the asset
and the absolute 'real' file that gets loaded. This object can be to uniquely identify
assets when the filesystem consists of multiple asset directory roots that potentially
contain one or more versions of the same asset.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilepath()static AssetPathfromAbsolute(Path root, Path filepath) Create an AssetPath from a root and absolute file path.static AssetPathfromRelative(Path root, Path assetPath) Create an AssetPath from a root and a relative asset path.inthashCode()path()toString()
-
Field Details
-
COMPARATOR
-
-
Method Details
-
rename
-
path
-
filepath
-
getFileName
-
toString
-
hashCode
-
equals
-
fromAbsolute
-
fromRelative
Create an AssetPath from a root and a relative asset path.- Parameters:
root- The path to the root asset directory.assetPath- The path to the asset relative to the root.- Returns:
- A new AssetPath instance for the asset.
-