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 Summary
Modifier and TypeMethodDescriptionstatic ClientTextureAsset
clientTextureAsset
(String identifier) Creates a newClientTextureAsset
from the provided string-formattedKey
and infers the texture path from it.static ClientTextureAsset
clientTextureAsset
(Key identifier) Creates a newClientTextureAsset
using the provided identifier and infers the texture path from it.static ClientTextureAsset
clientTextureAsset
(Key identifier, Key texturePath) Creates a newClientTextureAsset
with the specified identifier and texture path.The identifier of the client texture asset, uniquely identifying the asset on the client.The path of the texture on the client, split into a namespace and a path/key.
-
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 newClientTextureAsset
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
Creates a newClientTextureAsset
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
Creates a newClientTextureAsset
from the provided string-formattedKey
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.
-