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 Summary
Modifier and TypeMethodDescriptionstatic ClientTextureAssetclientTextureAsset(String identifier) Creates a newClientTextureAssetfrom the provided string-formattedKeyand infers the texture path from it.static ClientTextureAssetclientTextureAsset(net.kyori.adventure.key.Key identifier) Creates a newClientTextureAssetusing the provided identifier and infers the texture path from it.static ClientTextureAssetclientTextureAsset(net.kyori.adventure.key.Key identifier, net.kyori.adventure.key.Key texturePath) Creates a newClientTextureAssetwith the specified identifier and texture path.net.kyori.adventure.key.KeyThe identifier of the client texture asset, uniquely identifying the asset on the client.net.kyori.adventure.key.KeyThe path of the texture on the client, split into a namespace and a path/key.
-
Method Details
-
identifier
net.kyori.adventure.key.Key identifier()The identifier of the client texture asset, uniquely identifying the asset on the client.- Returns:
- the identifier.
-
texturePath
net.kyori.adventure.key.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(net.kyori.adventure.key.Key identifier, net.kyori.adventure.key.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.
-
clientTextureAsset
@Contract("_ -> new") static ClientTextureAsset clientTextureAsset(net.kyori.adventure.key.Key identifier) Creates 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.
-
clientTextureAsset
Creates 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.
-