Package kr.toxicity.library.dynamicuv
Class UVNamespace
java.lang.Object
kr.toxicity.library.dynamicuv.UVNamespace
Represents a namespace for UV assets.
-
Constructor Summary
ConstructorsConstructorDescriptionUVNamespace(@NotNull String namespace, @NotNull String directory) Creates a new UV namespace. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringFormats an asset name with the namespace and directory.@NotNull StringFormats an item asset name.@NotNull StringFormats a model asset name.@NotNull StringFormats a texture asset name.@NotNull UVTextureNametoTextureAssets(@NotNull UVTextureName textureName) Converts a UVTextureName to texture assets.
-
Constructor Details
-
UVNamespace
Creates a new UV namespace.- Parameters:
namespace- the namespace stringdirectory- the directory string
-
-
Method Details
-
asset
Formats an asset name with the namespace and directory.- Parameters:
assetName- the asset name- Returns:
- the formatted asset name
-
toTextureAssets
Converts a UVTextureName to texture assets.- Parameters:
textureName- the texture name- Returns:
- the converted UVTextureName
-
item
Formats an item asset name.- Parameters:
assetName- the asset name- Returns:
- the formatted item asset path
-
model
Formats a model asset name.- Parameters:
assetName- the asset name- Returns:
- the formatted model asset path
-
texture
Formats a texture asset name.- Parameters:
assetName- the asset name- Returns:
- the formatted texture asset path
-