Package net.kyori.adventure.resource
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:
ResourcePackRequest
,Audience.sendResourcePacks(ResourcePackInfoLike, ResourcePackInfoLike...)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ResourcePackInfo.Builder
A builder for resource pack requests.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull ResourcePackInfo
asResourcePackInfo()
Gets aResourcePackInfo
representation.@NotNull java.lang.String
hash()
Gets the SHA-1 hash.@NotNull java.util.UUID
id()
Gets the id.static @NotNull ResourcePackInfo.Builder
resourcePackInfo()
Create a new builder that will create aResourcePackInfo
.static @NotNull ResourcePackInfo
resourcePackInfo(@NotNull java.util.UUID id, @NotNull java.net.URI uri, @NotNull java.lang.String hash)
Creates information about a resource pack.@NotNull java.net.URI
uri()
Gets the uri.
-
-
-
Method Detail
-
resourcePackInfo
@NotNull static @NotNull ResourcePackInfo resourcePackInfo(@NotNull @NotNull java.util.UUID id, @NotNull @NotNull java.net.URI uri, @NotNull @NotNull java.lang.String hash)
Creates information about a resource pack.- Parameters:
id
- the iduri
- the urihash
- 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 aResourcePackInfo
.- Returns:
- a builder
- Since:
- 4.15.0
-
id
@NotNull @NotNull java.util.UUID id()
Gets the id.- Returns:
- the id
- Since:
- 4.15.0
-
uri
@NotNull @NotNull java.net.URI uri()
Gets the uri.- Returns:
- the uri
- Since:
- 4.15.0
-
hash
@NotNull @NotNull java.lang.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 aResourcePackInfo
representation.- Specified by:
asResourcePackInfo
in interfaceResourcePackInfoLike
- Returns:
- a component
-
-