Package net.kyori.adventure.resource
Interface ResourcePackInfo
- All Superinterfaces:
net.kyori.examination.Examinable,ResourcePackInfoLike
Represents information about a resource pack that can be sent to players.
- Since:
- 4.15.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for resource pack requests. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ResourcePackInfoGets aResourcePackInforepresentation.@NotNull Stringhash()Gets the SHA-1 hash.@NotNull UUIDid()Gets the id.static @NotNull ResourcePackInfo.BuilderCreate a new builder that will create aResourcePackInfo.static @NotNull ResourcePackInforesourcePackInfo(@NotNull UUID id, @NotNull URI uri, @NotNull String hash) Creates information about a resource pack.@NotNull URIuri()Gets the uri.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
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 iduri- the urihash- the sha-1 hash- Returns:
- the resource pack request
- Since:
- 4.15.0
-
resourcePackInfo
Create a new builder that will create aResourcePackInfo.- Returns:
- a builder
- Since:
- 4.15.0
-
id
Gets the id.- Returns:
- the id
- Since:
- 4.15.0
-
uri
Gets the uri.- Returns:
- the uri
- Since:
- 4.15.0
-
hash
Gets the SHA-1 hash.- Returns:
- the hash
- Since:
- 4.15.0
-
asResourcePackInfo
Description copied from interface:ResourcePackInfoLikeGets aResourcePackInforepresentation.- Specified by:
asResourcePackInfoin interfaceResourcePackInfoLike- Returns:
- a component
-