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 SummaryModifier and TypeMethodDescriptionstatic ClientTextureAssetclientTextureAsset(String identifier) Creates a newClientTextureAssetfrom the provided string-formattedKeyand infers the texture path from it.static ClientTextureAssetclientTextureAsset(Key identifier) Creates a newClientTextureAssetusing the provided identifier and infers the texture path from it.static ClientTextureAssetclientTextureAsset(Key identifier, Key texturePath) Creates a newClientTextureAssetwith 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- 
identifierKey identifier()The identifier of the client texture asset, uniquely identifying the asset on the client.- Returns:
- the identifier.
 
- 
texturePathKey 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 newClientTextureAssetwith 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 ClientAssetinstance.
 
- 
clientTextureAssetCreates a newClientTextureAssetusing the provided identifier and infers the texture path from it.- Parameters:
- identifier- the unique identifier for the client texture asset.
- Returns:
- a new ClientAssetinstance.
 
- 
clientTextureAssetCreates a newClientTextureAssetfrom the provided string-formattedKeyand infers the texture path from it.The identifier string must conform to the KeyPatternformat.- Parameters:
- identifier- the string representation of the asset's identifier.
- Returns:
- a new ClientAssetinstance.
 
 
-