Interface ClientTextureAsset


@Experimental @NonExtendable public interface ClientTextureAsset
A data-centric version-specific representation of a client texture asset, composed of an identifier and a path. Follows the same, version-specific, compatibility guarantees as the RegistryEntry types it is used in.
  • Method Details

    • identifier

      Key identifier()
      The identifier of the client texture asset, uniquely identifying the asset on the client.
      Returns:
      the identifier.
    • texturePath

      Key texturePath()
      The path of the texture on the client, split into a namespace and a path/key.
      Returns:
      the texture path.
    • clientTextureAsset

      @Contract("_,_ -> new") static ClientTextureAsset clientTextureAsset(Key identifier, Key texturePath)
      Creates a new ClientTextureAsset with the specified identifier and texture path.
      Parameters:
      identifier - the unique identifier for the client texture asset.
      texturePath - the path where the asset is located on the client.
      Returns:
      a new ClientAsset instance.
    • clientTextureAsset

      @Contract("_ -> new") static ClientTextureAsset clientTextureAsset(Key identifier)
      Creates a new ClientTextureAsset using the provided identifier and infers the texture path from it.
      Parameters:
      identifier - the unique identifier for the client texture asset.
      Returns:
      a new ClientAsset instance.
    • clientTextureAsset

      @Contract("_ -> new") static ClientTextureAsset clientTextureAsset(@KeyPattern String identifier)
      Creates a new ClientTextureAsset from the provided string-formatted Key and infers the texture path from it.

      The identifier string must conform to the KeyPattern format.

      Parameters:
      identifier - the string representation of the asset's identifier.
      Returns:
      a new ClientAsset instance.