Interface AssetIndexReference


  • @Immutable
    @TypeAdapters
    public interface AssetIndexReference
    A reference to a downloadable AssetIndex.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String id()
      An id used to refer to this asset index.
      java.lang.String sha1()
      The sha1 hash of this asset index.
      int size()
      The size of the asset index file, in bytes.
      int totalSize()
      The total size of assets described by the index file, in bytes.
      java.net.URL url()
      A url to download the asset index from.
    • Method Detail

      • id

        java.lang.String id()
        An id used to refer to this asset index.
        Returns:
        the id
      • sha1

        java.lang.String sha1()
        The sha1 hash of this asset index.
        Returns:
        the asset index hash
      • size

        int size()
        The size of the asset index file, in bytes.
        Returns:
        the file size
      • totalSize

        int totalSize()
        The total size of assets described by the index file, in bytes.
        Returns:
        the total size
      • url

        java.net.URL url()
        A url to download the asset index from.
        Returns:
        the download URL