Class GameProfile.Texture

java.lang.Object
org.geysermc.mcprotocollib.auth.GameProfile.Texture
Enclosing class:
GameProfile

public static class GameProfile.Texture extends Object
A texture contained within a profile.
  • Constructor Details

    • Texture

      public Texture(String url, Map<String,String> metadata)
      Creates a new Texture instance.
      Parameters:
      url - URL of the texture.
      metadata - Metadata of the texture.
  • Method Details

    • getURL

      public String getURL()
      Gets the URL of the texture.
      Returns:
      The texture's URL.
    • getMetadata

      public String getMetadata(String key)
      Gets a metadata string from the texture.
      Returns:
      The metadata value corresponding to the given key.
    • getModel

      public GameProfile.TextureModel getModel()
      Gets the model of the texture.
      Returns:
      The texture's model.
    • getHash

      public String getHash()
      Gets the hash of the texture.
      Returns:
      The texture's hash.
    • toString

      public String toString()
      Overrides:
      toString in class Object