Interface ResourcePackInfo

All Superinterfaces:
net.kyori.examination.Examinable, ResourcePackInfoLike

public interface ResourcePackInfo extends net.kyori.examination.Examinable, ResourcePackInfoLike
Represents information about a resource pack that can be sent to players.
Since:
4.15.0
See Also:
  • Method Details

    • resourcePackInfo

      @NotNull static @NotNull ResourcePackInfo resourcePackInfo(@NotNull @NotNull UUID id, @NotNull @NotNull URI uri, @NotNull @NotNull String hash)
      Creates information about a resource pack.
      Parameters:
      id - the id
      uri - the uri
      hash - the sha-1 hash
      Returns:
      the resource pack request
      Since:
      4.15.0
    • resourcePackInfo

      @NotNull static @NotNull ResourcePackInfo.Builder resourcePackInfo()
      Create a new builder that will create a ResourcePackInfo.
      Returns:
      a builder
      Since:
      4.15.0
    • id

      @NotNull @NotNull UUID id()
      Gets the id.
      Returns:
      the id
      Since:
      4.15.0
    • uri

      @NotNull @NotNull URI uri()
      Gets the uri.
      Returns:
      the uri
      Since:
      4.15.0
    • hash

      @NotNull @NotNull String hash()
      Gets the SHA-1 hash.
      Returns:
      the hash
      Since:
      4.15.0
    • asResourcePackInfo

      @NotNull default @NotNull ResourcePackInfo asResourcePackInfo()
      Description copied from interface: ResourcePackInfoLike
      Gets a ResourcePackInfo representation.
      Specified by:
      asResourcePackInfo in interface ResourcePackInfoLike
      Returns:
      a component