Class UVNamespace

java.lang.Object
kr.toxicity.library.dynamicuv.UVNamespace

public final class UVNamespace extends Object
Represents a namespace for UV assets.
  • Constructor Details

    • UVNamespace

      public UVNamespace(@NotNull @NotNull String namespace, @NotNull @NotNull String directory)
      Creates a new UV namespace.
      Parameters:
      namespace - the namespace string
      directory - the directory string
  • Method Details

    • asset

      @NotNull public @NotNull String asset(@NotNull @NotNull String assetName)
      Formats an asset name with the namespace and directory.
      Parameters:
      assetName - the asset name
      Returns:
      the formatted asset name
    • toTextureAssets

      @NotNull public @NotNull UVTextureName toTextureAssets(@NotNull @NotNull UVTextureName textureName)
      Converts a UVTextureName to texture assets.
      Parameters:
      textureName - the texture name
      Returns:
      the converted UVTextureName
    • item

      @NotNull public @NotNull String item(@NotNull @NotNull String assetName)
      Formats an item asset name.
      Parameters:
      assetName - the asset name
      Returns:
      the formatted item asset path
    • model

      @NotNull public @NotNull String model(@NotNull @NotNull String assetName)
      Formats a model asset name.
      Parameters:
      assetName - the asset name
      Returns:
      the formatted model asset path
    • texture

      @NotNull public @NotNull String texture(@NotNull @NotNull String assetName)
      Formats a texture asset name.
      Parameters:
      assetName - the asset name
      Returns:
      the formatted texture asset path